A mapping from keys to values.
The keys in a map needs to be an instance of the
Key typeclass.
Instances are already provided for many common element types.
Map implements
Foldable,
Monoid, etc so many
common operations such as
foldr to reduce the structure with a
right fold,
length to get the number of key/value pairs in the
dictionary,
null to test whether the map is empty, and
(
<>) to join two maps together are available.
To convert to other dictionary types see
fromMap below.
(this is a thin wrapper around
unordered-containers's
HashMap, but if you use the conversion functions to extract the
key/value pairs in a list the list will be ordered according to the
keys'
Ord instance)