getOrDefault

fun getOrDefault(key: K?): E

Returns the element matching the key, or the default value as a fallback.