map.getOrDefault(key, defaultValue)
map[key] ?: defaultValue
例:
fun test(map: Map<Int, String>) { map.getOrDefault(1, "foo") }
fun test(map: Map<Int, String>) { map[1] ?: "foo" }