downTo function
suggest changeTo iterate over numbers in reverse order, use the downTo function from the standard library:
for (i in 4 downTo 1) print(i) // prints "4321"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents