logoalt Hacker News

rtpgtoday at 12:26 AM0 repliesview on HN

what is the value of an "update or insert" call on `Map`? is that not just set?

`getOrInsert` here seems to be the Python "set_default" method on dicts, which is very useful at avoiding tedium in some basic data munging