computeIfAbsent

expect fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

actual fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

actual fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

actual fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.