Iterator::max* returns the last for equal keys,
this crate implements the return the first
use IterFirstMaxExt as _;
let arr = ;
let last = arr.iter.max_by_key;
let first = arr.iter.first_max_by_key;
assert_eq!;
assert_eq!;
Iterator::max* returns the last for equal keys,
this crate implements the return the first
use IterFirstMaxExt as _;
let arr = ;
let last = arr.iter.max_by_key;
let first = arr.iter.first_max_by_key;
assert_eq!;
assert_eq!;