Not trying to find declaration in both builtins and decompiled code (as it worked before).
This commit is contained in:
@@ -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() }
|
||||
Reference in New Issue
Block a user