kotlin-stdlib / kotlin.streams / java.util.stream.IntStream Extensions for java.util.stream.IntStream JVM JRE8 1.2 asSequence Creates a Sequence instance that wraps the original stream iterating through its elements. fun IntStream.asSequence(): Sequence<Int> JVM JRE8 1.2 toList Returns a List containing all elements produced by this stream. fun IntStream.toList(): List<Int>