itertools::group_map

Function into_group_map

Source
pub fn into_group_map<I, K, V>(iter: I) -> HashMap<K, Vec<V>>
where I: Iterator<Item = (K, V)>, K: Hash + Eq,
Expand description

Return a HashMap of keys mapped to a list of their corresponding values.

See .into_group_map() for more information.