putIfAbsentOrNull

fun <K, V> MutableMap<K, V>.putIfAbsentOrNull(key: K, value: V): V?(source)

Returns null if the element already exists