A dictionary implementation using List. The keys can be any type includes
recodes and custom type. This module provides all functions does Dict, except
'foldl', 'foldr', 'merge'.
Insert, remove, and query operations all take O(n) time. Only for a few elements.
To determine equality, use 'eq' instead of '(==)'.
Insert a key-value pair into a dictionary. Replaces value when there is a collision.
Update the value of a dictionary for a specific key with a given function.
Remove a key-value pair from a dictionary. If the key is not found, no changes are made.
Convert a dictionary into an association list of key-value pairs. The order is not Fixed.
Convert an association list into a dictionary. This function takes O(n^2) for n-element list.
Fold over the key-value pairs in a dictionary. The order is not fixed.
Keep only the key-value pairs that pass the given test.
Partition a dictionary according to some test. The first dictionary contains all key-value pairs which passed the test, and the second contains the pairs that did not.
Combine two dictionaries. If there is a collision, preference is given to the first dictionary.
Keep a key-value pair when its key appears in the second dictionary. Preference is given to values in the first dictionary.
A dictionary of keys and values.