fun <T> Iterator<T>.asSequence(): Sequence<T>
Creates a sequence that returns all elements from this iterator. The sequence is constrained to be iterated only once.
inline fun <T> Sequence<T>.asSequence(): Sequence<T>
Returns this sequence as a Sequence.
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/as-sequence.html