Skip to main content

binary_search

Function binary_search 

Source
pub fn binary_search(high: usize, compare: impl Fn(usize) -> Ordering) -> usize
Expand description

binarySearch(high, compare) (shared/src/binary-search.ts): the index where compare is equal, or the first index past the elements it is greater for.