MODULE REFERENCE
Data.Map
Ordered, persistent key-value maps.
SYNOPSIS
Types and classes
opaque Map k vA persistent mapping from ordered keys to values.
Functions and values
empty :: forall k v. Map k vConstruct an empty map.
insert :: forall k v. using (ord :: Ord k) => k -> v -> Map k v -> Map k vInsert a value. An existing value at the same key is replaced.
lookup :: forall k v. using (ord :: Ord k) => k -> Map k v -> Option vFind the value associated with a key.
EXAMPLE
lookup "port" (insert "port" 8080 empty)
-- Some 8080keys :: forall k v. Map k v -> List kReturn keys in ascending order.
Since 0.2.1
