KotlinMapgetOrDefault
get

getOrDefaultMap

getOrElse

Returns the value for the specified key, or the default value if the key is not found.

Syntax

map.getOrDefault(key, default)