Skip to content

Glossary: Kotlin Basics

range

Also written: ranges, .., ..<, until

A run of values. `1..20` includes 20, while `1..<12` and `1 until 12` stop just before 12; `in` checks whether a value is in a range.

Where the book teaches it

Related terms

for loopdownTo / stepin / !in