pub fn index_of<T, F: Fn(&T, &T) -> bool>( values: &[T], search: &T, from: f64, reverse: bool, equal: F, ) -> f64