getOrDefault
Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.