Kotlin - Collections Fundamentals
Identify the issue in this Kotlin code snippet:
val map = mapOf("x" to 10)
for (x, y in map) {
println(x + y)
}val map = mapOf("x" to 10)
for (x, y in map) {
println(x + y)
}for ((x, y) in map).for (x, y in map) which is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions