computeIfAbsent

inline fun <K, E> MutableMap<K, E>.computeIfAbsent(key: K, initializer: () -> E): E

Retrieves the element corresponding to key from this map if it already exists or creates it by calling initializer and saving the result to the map