Logo

Programming-Idioms

History of Idiom 13 > diff from v24 to v25

Edit summary for version 25 by :

Version 24

2015-09-13, 12:22:30

Version 25

2015-09-13, 12:29:45

Idiom #13 Iterate over map keys and values

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

Idiom #13 Iterate over map keys and values

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

Code
for {key, value} <- mymap do
  IO.puts("#{key} => #{value}")
end
Demo URL
http://play.elixirbyexample.com/s/0e6f1f2973