@@ -399,6 +399,9 @@ impl<I, K, V> GroupingMap<I>
399
399
/// Groups elements from the `GroupingMap` source by key and find the maximum and minimum of
400
400
/// each group.
401
401
///
402
+ /// If several elements are equally maximum, the last element is picked.
403
+ /// If several elements are equally minimum, the first element is picked.
404
+ ///
402
405
/// See [.minmax_by()](../trait.Itertools.html#method.minmax) for the non-grouping version.
403
406
///
404
407
/// Differences from the non grouping version:
@@ -429,6 +432,9 @@ impl<I, K, V> GroupingMap<I>
429
432
/// Groups elements from the `GroupingMap` source by key and find the maximum and minimum of
430
433
/// each group with respect to the specified comparison function.
431
434
///
435
+ /// If several elements are equally maximum, the last element is picked.
436
+ /// If several elements are equally minimum, the first element is picked.
437
+ ///
432
438
/// It has the same differences from the non-grouping version as `minmax`.
433
439
///
434
440
/// Returns a `HashMap` associating the key of each group with the minimum and maximum of that group's elements.
@@ -476,6 +482,9 @@ impl<I, K, V> GroupingMap<I>
476
482
/// Groups elements from the `GroupingMap` source by key and find the elements of each group
477
483
/// that gives the minimum and maximum from the specified function.
478
484
///
485
+ /// If several elements are equally maximum, the last element is picked.
486
+ /// If several elements are equally minimum, the first element is picked.
487
+ ///
479
488
/// It has the same differences from the non-grouping version as `minmax`.
480
489
///
481
490
/// Returns a `HashMap` associating the key of each group with the minimum and maximum of that group's elements.
0 commit comments