File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2770,6 +2770,8 @@ pub trait Itertools : Iterator {
2770
2770
/// Return a `HashMap` of keys mapped to `Vec`s of values. Keys and values
2771
2771
/// are taken from `(Key, Value)` tuple pairs yielded by the input iterator.
2772
2772
///
2773
+ /// Essentially a shorthand for `.into_grouping_map().collect::<Vec<_>>()`.
2774
+ ///
2773
2775
/// ```
2774
2776
/// use itertools::Itertools;
2775
2777
///
@@ -2791,8 +2793,8 @@ pub trait Itertools : Iterator {
2791
2793
2792
2794
/// Return an `Iterator` on a `HashMap`. Keys mapped to `Vec`s of values. The key is specified
2793
2795
/// in the closure.
2794
- /// Different to `into_group_map_by` because the key is still present. It is also more general.
2795
- /// You can also fold the `group_map `.
2796
+ ///
2797
+ /// Essentially a shorthand for `.into_grouping_map_by(f).collect::<Vec<_>>() `.
2796
2798
///
2797
2799
/// ```
2798
2800
/// use itertools::Itertools;
You can’t perform that action at this time.
0 commit comments