Repeat an action x times

suggest change
repeat(10) { i ->
    println("This line will be printed 10 times")
    println("We are on the ${i + 1}. loop iteration")
}

Feedback about page:

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



Table Of Contents