Function core::slice::select::max_index

source ·
fn max_index<T, F: FnMut(&T, &T) -> bool>(
    slice: &[T],
    is_less: &mut F
) -> Option<usize>
Expand description

Helper function that returns the index of the maximum element in the slice using the given comparator function