Browse topics
Standard Library
Ranges
Range expressions, until, downTo and step in Kotlin.
kotlin rangesRange Basics in KotlinRange represents interval between two values. A Kotlin example with source code and sample output.kotlin rangesuntil Range in Kotlinuntil creates range excluding end value. A Kotlin example with source code and sample output.kotlin rangesdownTo Range in KotlindownTo counts downward from start to end. A Kotlin example with source code and sample output.kotlin rangesstep Function in Ranges in Kotlinstep defines increment or decrement amount in range iteration. A Kotlin example with source code and sample output.
Related topics
List, Map & Set Immutable and mutable collection operations, filtering and sorting. Sequences Lazy sequences, operations and when to use sequences vs lists. Regular Expressions Regex matching, find, replace and common patterns in Kotlin. File I/O Read and write files, lines and path operations in Kotlin.