argmax

Function argmax 

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

Returns the index of the largest element in xs.

If there are multiple largest elements, returns the index of the first.