Intention to simplify for using destructing declaration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val map = hashMapOf(1 to 1)
|
||||
for (<caret>entry in map) {
|
||||
val key = entry.key
|
||||
val value = entry.value
|
||||
|
||||
println(key)
|
||||
println(value)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user