Performs a binary search of buf, returning true if an element equivalent to pat is found. Comparisons will be performed using the supplied predicate or '<' if none is supplied.
The sorted array to search.
The pattern to search for.
The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type.
True if an element equivalent to pat is found, false if not.
See Implementation
Performs a binary search of buf, returning true if an element equivalent to pat is found. Comparisons will be performed using the supplied predicate or '<' if none is supplied.