Logo

Programming-Idioms

History of Idiom 8 > diff from v10 to v11

Edit summary for version 11 by :

Version 10

2015-08-23, 23:44:30

Version 11

2015-09-03, 13:50:44

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 = Data.Map.Strict.fromList [ ("red", "FF0000"), ("blue", "0000FF") ]

Doc URL
http://hackage.haskell.org/package/containers/docs/Data-Map-Strict.html