Sequences | Kotlin
kotlinlang.org › docs › sequencesFeb 11, 2021 · Sequences. Sequences. . Along with collections, the Kotlin standard library contains another container type – sequences ( Sequence<T> ). Sequences offer the same functions as Iterable but implement another approach to multi-step collection processing. When the processing of an Iterable includes multiple steps, they are executed eagerly ...
Sequence - Kotlin Programming Language
kotlinlang.org › stdlib › kotlinThe latter sequences throw an exception on an attempt to iterate them the second time. Sequence operations, like Sequence.map, Sequence.filter etc, generally preserve that property of a sequence, and again it's documented for an operation if it doesn't. Parameters. T - the type of elements in the sequence.
Sequences | Kotlin
https://kotlinlang.org/docs/sequences.html11.02.2021 · Along with collections, the Kotlin standard library contains another container type – sequences ( Sequence<T> ). Sequences offer the same functions as Iterable but implement another approach to multi-step collection processing.