Fork of elm/core's Dict, bypassing the
"comparable"-key limitation for UUIDs.
Also includes some extras.
Insert, remove, and query operations all take O(log n) time.
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.
Get the value associated with a key. If the key is not found, return
Nothing. This is useful when you are not sure if a key will be in the
dictionary.
See elm/core's Dict.get for the original version.
Get all of the keys in a dictionary, sorted from lowest to highest.
See elm/core's Dict.keys for the original version.
Get all of the values in a dictionary, in the order of their keys.
See elm/core's Dict.values for the original version.
Convert a dictionary into an association list of key-value pairs, sorted by keys.
Fold over the key-value pairs in a dictionary from lowest key to highest key.
See elm/core's Dict.foldl for the original version.
Fold over the key-value pairs in a dictionary from highest key to lowest key.
See elm/core's Dict.foldr for the original version.
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.
Keep a key-value pair when its key does not appear in the second dictionary.
Combines two dictionaries.
See elm/core's Dict.merge for the original version.
Retrieve the first node that matches a predicate.
Retrieve the last node that matches a predicate.
A dictionary of
UUIDs and values.See
elm/core'sDict.Dictfor the original version.