map.getOrDefault(key, defaultValue)
関数の呼び出しをインデックス演算子とエルビス演算子に置換します (
map[key] ?: defaultValue
)。