getOrAdd

If key is not in aa, add it with defaultValue. Returns a reference to the value corresponding to key.

ref
V
getOrAdd
(
K
V
)
(
ref V[K] aa
,
K key
,
V defaultValue = V.init
)

Meta