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