By the way, my function had a horrible bug, here i...
# announcements
c
By the way, my function had a horrible bug, here is the correct one:
Copy code
fun Int.times(apply: (Int) -> Unit) = (0..this - 1).forEach { apply(it) }