Crate count_invert

Source

Functionsยง

into_count_map
Converts a vector into a HashMap where the keys are the counts of elements and the values are vectors of elements that have that count.
into_counts
Converts a vector into a HashMap where the keys are the elements of the vector and the values are the counts of each element.
invert_map
Inverts a HashMap such that the keys become the values and the values become the keys. The resulting HashMap maps the original values to a vector of keys that had that value.