map.getOrDefault(key, defaultValue) function calls with an indexing and elvis operator (map[key] ?: defaultValue).
Example:
fun test(map: Map<Int, String>) {
map.getOrDefault(1, "foo")
}
fun test(map: Map<Int, String>) {
map[1] ?: "foo"
}