`map[key] = map.getOrDefault(key, 0) + 1`
# announcements
r
map[key] = map.getOrDefault(key, 0) + 1
a
Doesn't work on
Map
with no
set
r
Indeed
c
you’ll need a MutableMap, i.e.
mutableMapOf()
instead of
mapOf()