Home
last modified time | relevance | path

Searched refs:minmax_by_key (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/itertools/src/
Dgrouping_map.rs480 pub fn minmax_by_key<F, CK>(self, mut f: F) -> HashMap<K, MinMaxResult<V>> in minmax_by_key() function
Dlib.rs2646 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/
Dquick.rs1451 … 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));
Dtest_std.rs962 let (min, max) = data.iter().minmax_by_key(|v| v.1).into_option().unwrap(); in minmax()
/external/rust/crates/itertools/
DCHANGELOG.md222 …- Add `.minmax()` and `.minmax_by_key()`, iterator methods for finding both minimum and maximum in…