Kotlin - Variables and Type System
Given the following Kotlin code, what will be the output?
Explain why this works even though
val map = mutableMapOf("a" to 1, "b" to 2)
map["a"] = 3
println(map)Explain why this works even though
map is declared with val.