pub fn minmax_indexed<T>(
    v: &[T],
    idx: &[usize],
    i: usize,
    n: usize
) -> MinMax<T> where
    T: PartialOrd + Copy
Expand description

Using only a subset of v, defined by its idx subslice between i,i+n. Returns min of v, its index’s index, max of v, its index’s index.