kotlin.collections.asSequence
asSequence
fun <T> Iterable<T>.asSequence(): Sequence<T>
Creates a Sequence instance that wraps the original collection returning its elements when being iterated.
fun <K, V> Map<out K, V>.asSequence(): Sequence<Entry<K, V>>
Creates a Sequence instance that wraps the original map returning its entries when being iterated.