Searched refs:minmax_by (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/itertools/src/ |
D | grouping_map.rs | 404 self.minmax_by(|_, v1, v2| V::cmp(v1, v2)) in minmax() 430 pub fn minmax_by<F>(self, mut compare: F) -> HashMap<K, MinMaxResult<V>> in minmax_by() function 484 self.minmax_by(|key, v1, v2| f(key, &v1).cmp(&f(key, &v2))) in minmax_by_key()
|
D | lib.rs | 2660 fn minmax_by<F>(self, mut compare: F) -> MinMaxResult<Self::Item> in minmax_by() method 2973 match self.enumerate().minmax_by(|x, y| compare(&x.1, &y.1)) { in position_minmax_by()
|
/external/rust/crates/itertools/tests/ |
D | quick.rs | 1434 …let lookup = a.iter().copied().into_grouping_map_by(|i| i % modulo).minmax_by(|_, v1, v2| v1.cmp(v… 1440 .map(|(key, vals)| (key, vals.into_iter().minmax_by(|v1, v2| v1.cmp(v2)))) 1445 …assert_eq!(minmax, a.iter().copied().filter(|&val| val % modulo == key).minmax_by(|v1, v2| v1.cmp(… 1530 .minmax_by(|_, _, _| Ordering::Equal);
|
D | test_std.rs | 966 let (min, max) = data.iter().minmax_by(|x, y| x.1.cmp(&y.1)).into_option().unwrap(); in minmax()
|
/external/antlr/runtime/Ruby/lib/antlr3/ |
D | tree.rb | 555 first, last = tokens.minmax_by { |t| t.index }
|
/external/rust/crates/itertools/ |
D | CHANGELOG.md | 206 - Add `.minmax_by()`
|