Extensions for java.util.stream.IntStream
Platform and version requirements: JVM (1.2), JRE8 (1.2)
Creates a Sequence instance that wraps the original stream iterating through its elements.
fun IntStream.asSequence(): Sequence<Int>
Platform and version requirements: JVM (1.2), JRE8 (1.2)
Returns a List containing all elements produced by this stream.
fun IntStream.toList(): List<Int>