Logo

Programming-Idioms

History of Idiom 13 > diff from v15 to v16

Edit summary for version 16 by :

Version 15

2015-09-04, 11:30:01

Version 16

2015-09-04, 17:32:09

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
sequence_ [ print (k,x) | (k,x) <- mymap ]