Open Akuli opened 3 years ago
like python's setdefault
setdefault
Maybe it should return the value and be called get_or_create_if_missing
get_or_create_if_missing
Also could take in a callback function (not possible yet) to create value, only called when missing
like python's
setdefault