Searched refs:minmax_by_key (Results 1 – 5 of 5) sorted by relevance
/external/rust/crates/itertools/src/ |
D | grouping_map.rs | 480 pub fn minmax_by_key<F, CK>(self, mut f: F) -> HashMap<K, MinMaxResult<V>> in minmax_by_key() function
|
D | lib.rs | 2646 fn minmax_by_key<K, F>(self, key: F) -> MinMaxResult<Self::Item> in minmax_by_key() method 2930 match self.enumerate().minmax_by_key(|e| key(&e.1)) { in position_minmax_by_key()
|
/external/rust/crates/itertools/tests/ |
D | quick.rs | 1451 … let lookup = a.iter().copied().into_grouping_map_by(|i| i % modulo).minmax_by_key(|_, &val| val); 1457 .map(|(key, vals)| (key, vals.into_iter().minmax_by_key(|&val| val))) 1462 …assert_eq!(minmax, a.iter().copied().filter(|&val| val % modulo == key).minmax_by_key(|&val| val));
|
D | test_std.rs | 962 let (min, max) = data.iter().minmax_by_key(|v| v.1).into_option().unwrap(); in minmax()
|
/external/rust/crates/itertools/ |
D | CHANGELOG.md | 222 …- Add `.minmax()` and `.minmax_by_key()`, iterator methods for finding both minimum and maximum in…
|