Module Base__.Binary_searchable_intf
module type Indexable = sig ... endAn
Indexabletype is a finite sequence of elements indexed by consecutive integers0...length t - 1.getandlengthmust be O(1) for the resultingbinary_searchto be lg(n).
module type Indexable1 = sig ... endtype ('t, 'elt, 'key) binary_search= ?pos:int -> ?len:int -> 't -> compare:('elt -> 'key -> int) -> [ `Last_strictly_less_than | `Last_less_than_or_equal_to | `Last_equal_to | `First_equal_to | `First_greater_than_or_equal_to | `First_strictly_greater_than ] -> 'key -> int optiontype ('t, 'elt) binary_search_segmented= ?pos:int -> ?len:int -> 't -> segment_of:('elt -> [ `Left | `Right ]) -> [ `Last_on_left | `First_on_right ] -> int option
module type S = sig ... endmodule type S1 = sig ... endmodule type Binary_searchable = sig ... end