Kotlin - Collections Fundamentals
What does destructuring in Kotlin collection iteration allow you to do?
for ((key, value) in map) { ... }for ((key, value) in map) { ... }for ((key, value) in map) extracts both key and value from each map entry.key and value directly inside the loop without extra calls.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions