pub fn argmin<T: PartialOrd>(xs: &[T]) -> usizeExpand description
Returns the index of the smallest element in xs.
If there are multiple smallest elements, returns the index of the first.
pub fn argmin<T: PartialOrd>(xs: &[T]) -> usizeReturns the index of the smallest element in xs.
If there are multiple smallest elements, returns the index of the first.