Join Slack
Powered by
`map[key] = (map[key]?:0) + 1`
# announcements
c
Casey Brooks
09/25/2018, 7:30 PM
map[key] = (map[key]?:0) + 1
r
Ruckus
09/25/2018, 7:31 PM
That can have unexpected results if the map values can be nullable, which is why
getOrDefault
is recommended.
3
Views
Open in Slack
Previous
Next