Logo

Programming-Idioms

History of Idiom 13 > diff from v66 to v67

Edit summary for version 67 by miguel:
New Kotlin implementation by user [miguel]

Version 66

2019-09-26, 18:21:02

Version 67

2019-09-26, 22:49:01

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Illustration

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Illustration
Extra Keywords
table dictionary hash traverse traversal
Extra Keywords
table dictionary hash traverse traversal
Code
mymap.entries.forEach { print("${it.key} ${it.value}") }