Logo

Programming-Idioms

History of Idiom 8 > diff from v36 to v37

Edit summary for version 37 by programming-idioms.org:
[Elixir] +DemoURL

Version 36

2016-11-29, 20:06:34

Version 37

2016-11-30, 21:41:48

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