Buy me a coffee
Kotlin
›
Map
›
getOrDefault
←
get
getOrDefault
Map
getOrElse
→
キーがない場合はデフォルト値を返します。
構文
map.getOrDefault(key, default)