Join Slack
Powered by
By the way, my function had a horrible bug, here i...
# announcements
c
cedric
05/26/2016, 4:31 PM
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) }
2
Views
Open in Slack
Previous
Next