Not trying to find declaration in both builtins and decompiled code (as it worked before).

This commit is contained in:
Evgeny Gerashchenko
2015-03-04 15:26:53 +03:00
parent 2b522f2d5e
commit e7796fbb58
2 changed files with 9 additions and 5 deletions
@@ -52,3 +52,5 @@ public inline fun <reified T> Array<*>.firstIsInstance(): T {
for (element in this) if (element is T) return element
throw NoSuchElementException("No element of given type found")
}
public fun <T> streamOfLazyValues(vararg elements: () -> T): Stream<T> = elements.stream().map { it() }