Logo

Programming-Idioms

History of Idiom 8 > diff from v17 to v18

Edit summary for version 18 by :
New Erlang implementation by user [elbrujohalcon]

Version 17

2015-10-29, 14:05:11

Version 18

2015-11-18, 12:08:15

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.

Code
X = #{one => 1, "two" => 2.0, <<"three">> => [i, i, i]}.
Doc URL
http://www.erlang.org/doc/man/maps.html