Returns a new read-only map with the specified contents.
Syntax
mapOf(vararg pairs)Example
Enter values below to update the example in real time.
val→map→mapOf→to→println→val map = mapOf("a" to 1, "b" to 2, "c" to 3)
println(map["b"]) // 2