Join Slack
Powered by
You could abuse fold like this: `list1.fold(mutabl...
# getting-started
k
karelpeeters
11/08/2017, 12:56 PM
You could
abuse
fold like this:
list1.fold(mutableMapOf<Int, String>(), { map, it -> map.apply { put(it.size, it) })
Open in Slack
Previous
Next