Call me a bloody #Java nerd, but I simply love Map#computeIfAbsent(key, func).
So much ugly code eliminated!
1
1
Sure, it’s just that it would be so much nicer in a decent functional language, preferably one with lots of parentheses :)
Jan 17, 2017 · 2:32 PM UTC
1

