Mmmh I’m probably missing something obvious but is...
# announcements
c
Mmmh I’m probably missing something obvious but is there anything in the stdlib to iterate from
0..n-1
? I’m thinking of something like
Copy code
fun Int.forEach(apply: (Int) -> Unit) = (0..this - 1).forEach { apply(this) }

3.forEach { i -> … }