Browse topics
Standard Library
Sequences
Lazy sequences, operations and when to use sequences vs lists.
kotlin sequencesSequence Basics in KotlinSequence processes elements lazily one at a time. A Kotlin example with source code and sample output.kotlin sequencesSequence Operations in KotlinA Kotlin example program demonstrating Sequence Operations, complete with the source code and expected sample output.kotlin sequencesLazy Evaluation with Sequences in KotlinLazy evaluation computes values only when needed. A Kotlin example with source code and sample output.kotlin sequencesSequence vs List in KotlinList operations are eager and create intermediate lists. A Kotlin example with source code and sample output.kotlin sequencesgenerateSequence in KotlingenerateSequence creates potentially infinite sequence from seed and function. A Kotlin example with source code and sample output.