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