Isn't map.getOrPutBroken? Maps support null values, but getOrPut calls the lambda if there is a null value for a key
r
Ruckus
06/27/2020, 2:45 PM
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.