Function argmax

Source
pub fn argmax<T: PartialOrd>(xs: &[T]) -> usize
Expand description

Returns the index of the maximum value in a slice.