Ranges
Range expressions, until, downTo and step in Kotlin.
1
kotlin ranges
2Range Basics in Kotlin
Range represents interval between two values. A Kotlin example with source code and sample output.
kotlin ranges
3until Range in Kotlin
until creates range excluding end value. A Kotlin example with source code and sample output.
kotlin ranges
4downTo Range in Kotlin
downTo counts downward from start to end. A Kotlin example with source code and sample output.
kotlin ranges
step Function in Ranges in Kotlin
step defines increment or decrement amount in range iteration. A Kotlin example with source code and sample output.