Logo

Programming-Idioms

History of Idiom 8 > diff from v39 to v40

Edit summary for version 40 by Jerry:
New Clojure implementation by user [Jerry]

Version 39

2017-03-20, 06:43:28

Version 40

2017-09-01, 14:00:06

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
(def x {"One" 1
	"Two" 2
	"Three" 3})
Comments bubble
(get x "Two") will then return 2