kotlin map ? to code example
Example 1: kotlin map foreach
map.forEach { (key, value) -> println("$key = $value") }
Example 2: make map kotlin
val map = mapOf(1 to "x", 2 to "y", -1 to "zz")
map.forEach { (key, value) -> println("$key = $value") }
val map = mapOf(1 to "x", 2 to "y", -1 to "zz")