Isn't map.getOrPutBroken? Maps support null values...
# announcements
p
Isn't map.getOrPutBroken? Maps support null values, but getOrPut calls the lambda if there is a null value for a key
r
Unfortunately not. I asked about this years ago, and apparently it's intentional to match how Java works. If I remember correctly, it originally worked the way you (and I) expected, but was later changed.