Logo

Programming-Idioms

History of Idiom 8 > diff from v61 to v62

Edit summary for version 62 by programming-idioms.org:
[Elixir] Dead link: play.elixirbyexample.com has been down for a while

Version 61

2019-09-30, 11:56:46

Version 62

2019-10-14, 12:21:31

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Code
x = %{"one" => 1, "two" => 2}
Code
x = %{"one" => 1, "two" => 2}
Demo URL
http://play.elixirbyexample.com/s/16a47e1f62