Repeat an action x times

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

Feedback about page:

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



Table Of Contents