Module type Binary_searchable.S

type elt
type t
val binary_search_segmented : ?pos:int -> ?len:int -> t -> segment_of:(elt -> [ `Left | `Right ]) -> [ `First_on_right | `Last_on_left ] -> int option