Module type Binary_searchable.S1

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