Logo

Programming-Idioms

History of Idiom 13 > diff from v10 to v11

Edit summary for version 11 by :

Version 10

2015-08-20, 18:27:57

Version 11

2015-08-21, 09:10:49

Idiom #13 Iterate over map keys and values

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

Idiom #13 Iterate over map keys and values

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

Code
mymap.forEach((k, x) => print("Key=$k, Value=$x"));
Demo URL
https://dartpad.dartlang.org/8a25c9342ce62745f0f3