Data.Map
No module comment.
A hash map with the default hasher.
A map whose keys are hashed by h. h is the first parameter because it is
the one fixed longest: a program picks a hasher once, and keys and values
per map.
Returns an empty map with the default hasher.
Returns an empty map whose keys h hashes, for the h the call site's
type names.
The default is evaluated whether or not it is used: arguments are strict and
left to right. A default
that is expensive to build belongs behind a match on get.
Read, modify, write, in one place. update(counts, word, 0, _ + 1)
is the frequency count that is otherwise four lines and two lookups.
Equal when they hold the same keys with equal values, whatever order the
keys went in and whatever either table's capacity or seed. Looks each of
a's keys up in b, so it costs one lookup per entry.
Its entries in the order they were first put, {k: v, ...}. The table
and the bucket chain are how it is stored, not what it holds.
What its Debug prints: a container's text shows its elements' Debug,
so that a string in it is quoted.