On Tuesday, 17 April 2018 at 09:21:14 UTC, Giles Bathgate wrote:
The java name for such a function is `computeIfAbsent`

More names from other languages, this time python:

https://docs.python.org/3/library/stdtypes.html#dict.setdefault

It's horrid though, a method called `set` that returns a value? Maybe I am biased against anything pythonic ;)



Reply via email to