kotlin-stdlib / kotlin.streams / java.util.stream.Stream / toList toList JVM JRE8 1.2 fun <T> Stream<T>.toList(): List<T> Returns a List containing all elements produced by this stream.