polars_utils::binary_search

Function find_first_ge_index

Source
pub fn find_first_ge_index<T>(arr: &[T], val: T) -> usize
where T: Ord,
Expand description

Find the index of the first element of arr that is greater or equal to val. Assumes that arr is sorted.