Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlindestructuring declarationsSingle-choice MCQ

What happens when this loop destructures map entries?

val ages = mapOf("Ann" to 30, "Bob" to 25) for ((name, age) in ages) { print("$name=$age ") }