^ Choosing from the naming options listed (<https:...
# stdlib
h
^ Choosing from the naming options listed (https://youtrack.jetbrains.com/issue/KT-11851), I'd rather prefer
Map.getOrDefault(K): V
. Though this naming correlates with
Map.getOrDefault(K, V): V
, the latter has much closer semantics to the subject (and this correlation might even hint that the default value should be provided from somewhere else). Otherwise, an option I like even more is to expose the internal function
getOrImplicitDefault
or to choose its naming.