Logo

Programming-Idioms

History of Idiom 13 > diff from v72 to v73

Edit summary for version 73 by sdfs:
[Elixir] asdasd

Version 72

2019-12-26, 09:34:31

Version 73

2019-12-26, 09:34:53

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
Enum.each(mymap,sdsd fn({k, x}) ->
  IO.puts("#{k} => #{x}")
end)
Code
Enum.each(mymap,fn({k, x}) ->
  IO.puts("#{k} => #{x}")
end)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Enum.html#each/2
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Enum.html#each/2