Repeat an action x times
suggest changerepeat(10) { i ->
println("This line will be printed 10 times")
println("We are on the ${i + 1}. loop iteration")
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents