Persistent
Map based on hashing, which is defined as
data Map k v = IntMap (Some k v)
is an
IntMap indexed by hash values of keys, containing a value
of
Some e. That contains either one
(k,
v) pair or a
Map k v with keys of the
same hash values.
The interface of a
Map is a suitable subset of
IntMap
and can be used as a drop-in replacement of
Map.
The complexity of operations is determined by the complexities of
IntMap and
Map operations. See the sources of
Map
to see which operations from
containers package are used.