`sig
type ('a, 'b, 'cmp) t
type ('a, 'b, 'cmp) tree
val invariants :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> bool
val is_empty :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> bool
val length :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> int
val add :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
key:'a ->
data:'b -> ('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val add_multi :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b list, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
key:'a ->
data:'b -> ('a, 'b list, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val change :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
'a ->
('b option -> 'b option) ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val find :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
'a -> 'b option
val find_exn :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> 'a -> 'b
val remove :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
'a -> ('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val mem :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> 'a -> bool
val iter :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a -> data:'b -> unit) -> unit
val iter2 :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a ->
data:[ `Both of 'b * 'c | `Left of 'b | `Right of 'c ] -> unit) ->
unit
val map :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:('b -> 'c) -> ('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val mapi :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a -> data:'b -> 'c) ->
('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val fold :
('a, 'b, 'd) Core_map_intf.Accessors3_with_comparator.t ->
init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val fold_right :
('a, 'b, 'd) Core_map_intf.Accessors3_with_comparator.t ->
init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val filter :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a -> data:'b -> bool) ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val filter_map :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:('b -> 'c option) ->
('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val filter_mapi :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a -> data:'b -> 'c option) ->
('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val compare_direct :
comparator:('a, 'cmp) Comparator.t ->
('b -> 'b -> int) ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> int
val equal :
comparator:('a, 'cmp) Comparator.t ->
('b -> 'b -> bool) ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> bool
val keys :
('a, 'b, 'c) Core_map_intf.Accessors3_with_comparator.t -> 'a list
val data :
('a, 'b, 'c) Core_map_intf.Accessors3_with_comparator.t -> 'b list
val to_alist :
('a, 'b, 'c) Core_map_intf.Accessors3_with_comparator.t -> ('a * 'b) list
val validate :
name:('a -> string) ->
'b Validate.check ->
('a, 'b, 'c) Core_map_intf.Accessors3_with_comparator.t Validate.check
val merge :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'c, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:(key:'a ->
[ `Both of 'b * 'c | `Left of 'b | `Right of 'c ] -> 'd option) ->
('a, 'd, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val symmetric_diff :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
data_equal:('b -> 'b -> bool) ->
('a * [ `Left of 'b | `Right of 'b | `Unequal of 'b * 'b ]) Sequence.t
val min_elt :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a * 'b) option
val min_elt_exn :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> 'a * 'b
val max_elt :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a * 'b) option
val max_elt_exn :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t -> 'a * 'b
val for_all :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:('b -> bool) -> bool
val exists :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
f:('b -> bool) -> bool
val split :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
'a ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t *
('a * 'b) option *
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t
val fold_range_inclusive :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
min:'a -> max:'a -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val range_to_alist :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
min:'a -> max:'a -> ('a * 'b) list
val closest_key :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
[ `Greater_or_equal_to | `Greater_than | `Less_or_equal_to | `Less_than ] ->
'a -> ('a * 'b) option
val nth :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
int -> ('a * 'b) option
val rank :
comparator:('a, 'cmp) Comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
'a -> int option
val to_tree :
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.tree
val to_sequence :
comparator:('a, 'cmp) Comparator.t ->
?order:[ `Decreasing_key | `Increasing_key ] ->
?keys_greater_or_equal_to:'a ->
?keys_less_or_equal_to:'a ->
('a, 'b, 'cmp) Core_map_intf.Accessors3_with_comparator.t ->
('a * 'b) Sequence.t
end`