downTo function

suggest change

To iterate over numbers in reverse order, use the downTo function from the standard library:

for (i in 4 downTo 1) print(i) // prints "4321"

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents