getOrPut

fun getOrPut(key: K, compute: () -> V): V

Return

the value associated with key, atomically computing and storing it via compute if absent