Skip to main content

search

Function search 

Source
fn search(n: usize, predicate: impl Fn(usize) -> bool) -> usize
Expand description

Go sort.Search(n, predicate): the first index in [0, n) the predicate holds at, or n.