HashDict API.
All construction functions require you to provide
instances for
Equality
and
Hashing
explicit typeclasses.
For general introduction to explicit typeclasses, see the readme of the "typeclasses" library.
Construct an empty HashDict, providing the required instances for key.
Construct HashDict from a list of association pairs, providing the required instances for key.
Construct HashDict from an array of association pairs, providing the required instances for key.
Insert an association pair into dictionary, replacing a value if it already exists.
Remove a key-value pair from a dictionary. If the key is not found, no changes are made.
Update the value of a dictionary for a specific key with a given function.
Lookup a value by key.
Returns Nothing, when there is none.
Fold over the key-value pairs in the dictionary.
Generic dictionary from hashable keys to values.
Unlike
Dictfrom the "core" library it is not limited to any specific set of supported types for keys.Unlike the association list implementations it does not suffer from linear performance characteristics.