A Dict over any keys with a mapping to comparable.
Create an empty dictionary by suppling function used for comparing keys.
Create a dictionary with one key-value pair.
Insert a key-value pair into a dict. Replaces value when there is a collision.
Update the value of a dict for a specific key with a given function.
Remove a key-value pair from a dict. If the key is not found, no changes are made.
Get the value associated with a key. If the key is not found, return
Nothing.
Convert a dict into an association list of key-value pairs, sorted by keys.
Convert an association list into a dict.
Apply a function to all values in a dict.
Fold over the key-value pairs in a dict from lowest key to highest key.
Fold over the key-value pairs in a dict from highest key to lowest key.
Keep only the key-value pairs that pass the given test.
Partition a dict according to some test. The first dict contains all key-value pairs which passed the test, and the second contains the pairs that did not.
Combine two dicts. If there is a collision, preference is given to the first dict.
Keep a key-value pair when its key appears in the second dict. Preference is given to values in the first dictionary.
Keep a key-value pair when its key does not appear in the second dict.
The most general way of combining two dicts. You provide three accumulators for when a given key appears:
You then traverse all the keys from lowest to highest, building up whatever you want.
Dictionary over any keys with a function to map keys to comparable.