computeIfAbsent

fun computeIfAbsent(key: K, producer: (K) -> V): V

See also

MutableMap.computeIfAbsent