Skip to content

Glossary: Kotlin Basics

downTo / step

Also written: downTo, step

`downTo` makes a range count down, and `step` makes it jump by more than 1. For example, `10 downTo 0 step 5` visits 10, 5 and 0.

Where the book teaches it

Related terms

rangefor loop