Function group_by::group_by [] [src]

pub fn group_by<T, K, F>(x: T, f: F) -> HashMap<K, Vec<T::Item>> where
    T: IntoIterator,
    F: Fn(&T::Item) -> K,
    K: Eq + Hash

Group the iterator by the result of f. Similar to Ruby's group_by.