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