Map.Poly
A polymorphic Map.
type ('key, +'value) t = ('key, 'value, Comparator.Poly.comparator_witness) t
val empty : (_, _) t
val singleton : 'a -> 'b -> ('a, 'b) t
val of_alist : ('a * 'b) list -> [ `Ok of ('a, 'b) t | `Duplicate_key of 'a ]
val of_alist_or_error : ('a * 'b) list -> ('a, 'b) t Or_error.t
val of_alist_exn : ('a * 'b) list -> ('a, 'b) t
val of_alist_multi : ('a * 'b) list -> ('a, 'b list) t
val of_alist_fold : ('a * 'b) list -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c) t
val of_alist_reduce : ('a * 'b) list -> f:('b -> 'b -> 'b) -> ('a, 'b) t
val of_sorted_array : ('a * 'b) array -> ('a, 'b) t Or_error.t
val of_sorted_array_unchecked : ('a * 'b) array -> ('a, 'b) t
val of_increasing_iterator_unchecked : len:int -> f:(int -> 'a * 'b) -> ('a, 'b) t
val of_increasing_sequence : ('a * 'b) Sequence.t -> ('a, 'b) t Or_error.t
val of_sequence : ('a * 'b) Sequence.t -> [ `Ok of ('a, 'b) t | `Duplicate_key of 'a ]
val of_sequence_or_error : ('a * 'b) Sequence.t -> ('a, 'b) t Or_error.t
val of_sequence_exn : ('a * 'b) Sequence.t -> ('a, 'b) t
val of_sequence_multi : ('a * 'b) Sequence.t -> ('a, 'b list) t
val of_sequence_fold : ('a * 'b) Sequence.t -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c) t
val of_sequence_reduce : ('a * 'b) Sequence.t -> f:('b -> 'b -> 'b) -> ('a, 'b) t
val of_iteri : iteri:(f:(key:'a -> data:'b -> unit) -> unit) ->
[ `Ok of ('a, 'b) t | `Duplicate_key of 'a ]
val invariants : (_, _) t -> bool
val is_empty : (_, _) t -> bool
val length : (_, _) t -> int
val find_multi : ('a, 'b list) t -> 'a -> 'b list
val find : ('a, 'b) t -> 'a -> 'b option
val find_exn : ('a, 'b) t -> 'a -> 'b
val mem : ('a, 'b) t -> 'a -> bool
val iter_keys : ('a, _) t -> f:('a -> unit) -> unit
val iter : (_, 'b) t -> f:('b -> unit) -> unit
val iteri : ('a, 'b) t -> f:(key:'a -> data:'b -> unit) -> unit
val iteri_until : ('a, 'b) t -> f:(key:'a -> data:'b -> Base__Map_intf.Continue_or_stop.t) -> Base__Map_intf.Finished_or_unfinished.t
val fold : ('a, 'b) t -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val fold_right : ('a, 'b) t -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val combine_errors : ('a, 'b Or_error.t) t -> ('a, 'b) t Or_error.t
val keys : ('a, _) t -> 'a list
val data : (_, 'b) t -> 'b list
val to_alist : ?key_order:[ `Increasing | `Decreasing ] ->
('a, 'b) t -> ('a * 'b) list
val validate : name:('a -> string) -> 'b Validate.check -> ('a, 'b) t Validate.check
val validatei : name:('a -> string) -> ('a * 'b) Validate.check -> ('a, 'b) t Validate.check
val symmetric_diff : ('a, 'b) t -> ('a, 'b) t -> data_equal:('b -> 'b -> bool) ->
('a * [ `Left of 'b | `Right of 'b | `Unequal of 'b * 'b ]) Sequence.t
val min_elt : ('a, 'b) t -> ('a * 'b) option
val min_elt_exn : ('a, 'b) t -> 'a * 'b
val max_elt : ('a, 'b) t -> ('a * 'b) option
val max_elt_exn : ('a, 'b) t -> 'a * 'b
val for_all : (_, 'b) t -> f:('b -> bool) -> bool
val for_alli : ('a, 'b) t -> f:(key:'a -> data:'b -> bool) -> bool
val exists : (_, 'b) t -> f:('b -> bool) -> bool
val existsi : ('a, 'b) t -> f:(key:'a -> data:'b -> bool) -> bool
val count : (_, 'b) t -> f:('b -> bool) -> int
val counti : ('a, 'b) t -> f:(key:'a -> data:'b -> bool) -> int
val subrange : ('a, 'b) t -> lower_bound:'a Maybe_bound.t -> upper_bound:'a Maybe_bound.t -> ('a, 'b) t
val fold_range_inclusive : ('a, 'b) t -> min:'a -> max:'a -> init:'c -> f:(key:'a ->
data:'b -> 'c -> 'c) -> 'c
val range_to_alist : ('a, 'b) t -> min:'a -> max:'a -> ('a * 'b) list
val closest_key : ('a, 'b) t -> [ `Greater_or_equal_to | `Greater_than | `Less_or_equal_to | `Less_than ] -> 'a -> ('a * 'b) option
val nth : ('a, 'b) t -> int -> ('a * 'b) option
val nth_exn : ('a, 'b) t -> int -> 'a * 'b
val rank : ('a, _) t -> 'a -> int option
val to_sequence : ?order:[ `Increasing_key | `Decreasing_key ] ->
?keys_greater_or_equal_to:'a -> ?keys_less_or_equal_to:'a ->
('a, 'b) t -> ('a * 'b) Sequence.t
val binary_search : ('k, 'v) t -> compare:(key:'k -> data:'v -> '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 -> ('k * 'v) option
val binary_search_segmented : ('k, 'v) t -> segment_of:(key:'k -> data:'v ->
[ `Left | `Right ]) -> [ `Last_on_left | `First_on_right ] -> ('k * 'v) option