Most of the functions in this module are a alias for the same function in ID.Dict, which can handle both 'ID.Dict' and 'ID.CounterDict'
Create a empty CounterDict
Create a 'CounterDict' with a single ID-value pair
Create a new CounterDict from a list of values and assign an ID to every value
Convert a dictionary into an list of ID-value pairs, sorted by IDs.
Determine if a dictionary is empty.
Determine the number of ID-value pairs in the dictionary.
Determine if a ID is in a dictionary.
Get the value associated with a ID. If the ID is not found, return Nothing.
Same as get but with the arguments swapped, useful for pipelines.
Add a value to the Dictionary and assign it a new ID.
Insert a ID-value pair into a dictionary. Replaces value when there is a collision.
Remove a ID-value pair from a dictionary. If the ID is not found, no changes are made.
Update the value of a dictionary for a specific ID with a given function. If the ID is not found, no changes are made.
Apply a function to all values in a dictionary.
Keep only the ID-value pairs that pass the given test.
Apply a function to all values in the dictionary and filter out the values that return Nothing.
Fold over the ID-value pairs in a dictionary from lowest ID to highest ID.
Get all of the IDs in a dictionary, sorted from lowest to highest.
Get all of the values in a dictionary, in the order of their IDs.
Partition a dictionary according to some test.
The first dictionary contains all ID-value pairs which passed the test, and the second contains the pairs that did not.
The first dictionary retains the ID counter while the second is turned into a ID.Dict
Keep a ID-value pair when its ID does not appear in the second dictionary.
Keep a ID-value pair when its ID appears in the second dictionary. Preference is given to values in the first dictionary.
Combine two dictionaries. If there is a collision, preference is given to the first dictionary.
Apply a function to values that appear in both dictionaries and create a new dictionary with the results, values that don't appear in all dictionaries are skipped.
Same as ID.Dict.map2 but for 3 dictionaries
Same as ID.Dict.map2 but for 4 dictionaries
Encode CounterDict to a JSON value
JSON Decoder for `SetCounterDict
A dictionary with counter