将
map.getOrDefault(key, defaultValue)
函数调用替换为索引和 elvis 运算符 (
map[key] ?: defaultValue
)。