Join Slack
Powered by
So, basically `newList` could be specified as `fun...
# announcements
e
edvin
06/12/2016, 2:42 PM
So, basically
newList
could be specified as
fun <T> newList(size: Int, supplier: (Int) -> T) = (0..size - 1).map(supplier)
Open in Slack
Previous
Next