Haskell Language Containers - Data.Map Inserting Elements


Example

Inserting elements is simple:

> let m = Map.singleton "Alex" 31
fromList [("Alex",31)]

> Map.insert "Bob" 99 m
fromList [("Alex",31),("Bob",99)]