getOrDefault
Returns the value corresponding to the given key, or defaultValue if such a key is not present in the map.
Since Kotlin
1.1Since
JDK 1.8
Returns the value corresponding to the given key, or defaultValue if such a key is not present in the map.
JDK 1.8
Thanks for your feedback!