Module Binary_searchable.Make1

Parameters

module T : Indexable1

Signature

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