| Start |
|---|
| Integral Type Ranges Integral type ranges ( IntRange , LongRange , CharRange ) have an extra feature: they can be iterated over. The compiler takes care of converting this analogously to Java's indexed for-loop, without extra overhead |
| downTo() function if you want to iterate over numbers in reverse order? It's simple. You can use the downTo() function defined in the standard library |
| step() function Is it possible to iterate over numbers with arbitrary step, not equal to 1? Sure, the step() function will help you |
| until function To create a range which does not include its end element, you can use the until function: |
Read Article
https://develop.horje.com/learn/1434/reference