You could abuse fold like this: `list1.fold(mutabl...
# getting-started
k
You could abuse fold like this:
list1.fold(mutableMapOf<Int, String>(), { map, it -> map.apply { put(it.size, it) })