Intention to simplify for using destructing declaration

This commit is contained in:
Natalia Ukhorskaya
2016-01-13 14:47:02 +03:00
parent 5667a92472
commit ea3ba6f534
34 changed files with 631 additions and 0 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
fun main(args: Array<String>) {
val map = hashMapOf(1 to 1)
val entries = map.entries
for (<caret>entry in entries) {
val key = entry.key
val value = entry.value
println(key)
println(value)
}
}