package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('k, +'v, 'cmp) t = ('k, 'v, 'cmp) Core__.Map_intf.Tree.t
val sexp_of_t : ('k -> Sexplib0.Sexp.t) -> ('v -> Sexplib0.Sexp.t) -> ('cmp -> Sexplib0.Sexp.t) -> ('k, 'v, 'cmp) t -> Sexplib0.Sexp.t
include Map_intf.Creators_and_accessors3_with_comparator with type ('a, 'b, 'c) t := ('a, 'b, 'c) t with type ('a, 'b, 'c) tree := ('a, 'b, 'c) t
include Map_intf.Creators3_with_comparator with type ('a, 'b, 'c) t := ('a, 'b, 'c) t with type ('a, 'b, 'c) tree := ('a, 'b, 'c) t
val empty : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t
val singleton : comparator:('a, 'cmp) Base__.Comparator.t -> 'a -> 'b -> ('a, 'b, 'cmp) t
val map_keys : comparator:('k2, 'cmp2) Base__.Comparator.t -> ('k1, 'v, 'cmp1) t -> f:('k1 -> 'k2) -> [ `Duplicate_key of 'k2 | `Ok of ('k2, 'v, 'cmp2) t ]
val map_keys_exn : comparator:('k2, 'cmp2) Base__.Comparator.t -> ('k1, 'v, 'cmp1) t -> f:('k1 -> 'k2) -> ('k2, 'v, 'cmp2) t
val of_alist : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> [ `Duplicate_key of 'a | `Ok of ('a, 'b, 'cmp) t ]
val of_alist_or_error : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> ('a, 'b, 'cmp) t Base__.Or_error.t
val of_alist_exn : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> ('a, 'b, 'cmp) t
val of_alist_multi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> ('a, 'b list, 'cmp) t
val of_alist_fold : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c, 'cmp) t
val of_alist_reduce : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) list -> f:('b -> 'b -> 'b) -> ('a, 'b, 'cmp) t
val of_sorted_array : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) array -> ('a, 'b, 'cmp) t Base__.Or_error.t
val of_sorted_array_unchecked : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) array -> ('a, 'b, 'cmp) t
val of_increasing_iterator_unchecked : comparator:('a, 'cmp) Base__.Comparator.t -> len:int -> f:(int -> 'a * 'b) -> ('a, 'b, 'cmp) t
val of_increasing_sequence : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> ('a, 'b, 'cmp) t Base__.Or_error.t
val of_sequence : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> [ `Duplicate_key of 'a | `Ok of ('a, 'b, 'cmp) t ]
val of_sequence_or_error : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> ('a, 'b, 'cmp) t Base__.Or_error.t
val of_sequence_exn : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> ('a, 'b, 'cmp) t
val of_sequence_multi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> ('a, 'b list, 'cmp) t
val of_sequence_fold : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c, 'cmp) t
val of_sequence_reduce : comparator:('a, 'cmp) Base__.Comparator.t -> ('a * 'b) Base__.Sequence.t -> f:('b -> 'b -> 'b) -> ('a, 'b, 'cmp) t
val of_iteri : comparator:('a, 'cmp) Base__.Comparator.t -> iteri:(f:(key:'a -> data:'b -> unit) -> unit) -> [ `Duplicate_key of 'a | `Ok of ('a, 'b, 'cmp) t ]
val of_iteri_exn : comparator:('a, 'cmp) Base__.Comparator.t -> iteri:(f:(key:'a -> data:'b -> unit) -> unit) -> ('a, 'b, 'cmp) t
val of_tree : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t
val of_hashtbl_exn : comparator:('a, 'cmp) Comparator.t -> ('a, 'b) Hashtbl.t -> ('a, 'b, 'cmp) t
val of_key_set : ('a, 'cmp) Base.Set.t -> f:('a -> 'b) -> ('a, 'b, 'cmp) t
val quickcheck_generator : comparator:('a, 'cmp) Comparator.t -> 'a Quickcheck.Generator.t -> 'b Quickcheck.Generator.t -> ('a, 'b, 'cmp) t Quickcheck.Generator.t
include Map_intf.Accessors3_with_comparator with type ('a, 'b, 'c) t := ('a, 'b, 'c) t with type ('a, 'b, 'c) tree := ('a, 'b, 'c) t
val invariants : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> bool
val is_empty : ('a, 'b, 'cmp) t -> bool
val length : ('a, 'b, 'cmp) t -> int
val add : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> key:'a -> data:'b -> ('a, 'b, 'cmp) t Base__Map_intf.Or_duplicate.t
val add_exn : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> key:'a -> data:'b -> ('a, 'b, 'cmp) t
val set : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> key:'a -> data:'b -> ('a, 'b, 'cmp) t
val add_multi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b list, 'cmp) t -> key:'a -> data:'b -> ('a, 'b list, 'cmp) t
val remove_multi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b list, 'cmp) t -> 'a -> ('a, 'b list, 'cmp) t
val find_multi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b list, 'cmp) t -> 'a -> 'b list
val change : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> f:('b option -> 'b option) -> ('a, 'b, 'cmp) t
val update : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> f:('b option -> 'b) -> ('a, 'b, 'cmp) t
val find : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> 'b option
val find_exn : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> 'b
val remove : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> ('a, 'b, 'cmp) t
val mem : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> bool
val iter_keys : ('a, 'b, 'cmp) t -> f:('a -> unit) -> unit
val iter : ('a, 'b, 'cmp) t -> f:('b -> unit) -> unit
val iteri : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> unit) -> unit
val iteri_until : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> Base__Map_intf.Continue_or_stop.t) -> Base__Map_intf.Finished_or_unfinished.t
val iter2 : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'c, 'cmp) t -> f:(key:'a -> data:('b, 'c) Base__Map_intf.Merge_element.t -> unit) -> unit
val map : ('a, 'b, 'cmp) t -> f:('b -> 'c) -> ('a, 'c, 'cmp) t
val mapi : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> 'c) -> ('a, 'c, 'cmp) t
val fold : ('a, 'b, 'd) t -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val fold_until : ('k, 'v, 'b) t -> init:'a -> f: (key:'k -> data:'v -> 'a -> ('a, 'final) Base__.Container.Continue_or_stop.t) -> finish:('a -> 'final) -> 'final
val fold_right : ('a, 'b, 'd) t -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val fold2 : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'c, 'cmp) t -> init:'d -> f:(key:'a -> data:('b, 'c) Base__Map_intf.Merge_element.t -> 'd -> 'd) -> 'd
val filter_keys : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:('a -> bool) -> ('a, 'b, 'cmp) t
val filter : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:('b -> bool) -> ('a, 'b, 'cmp) t
val filteri : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> bool) -> ('a, 'b, 'cmp) t
val filter_map : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:('b -> 'c option) -> ('a, 'c, 'cmp) t
val filter_mapi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> 'c option) -> ('a, 'c, 'cmp) t
val partition_mapi : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> ('c, 'd) Base__.Either.t) -> ('a, 'c, 'cmp) t * ('a, 'd, 'cmp) t
val partition_map : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:('b -> ('c, 'd) Base__.Either.t) -> ('a, 'c, 'cmp) t * ('a, 'd, 'cmp) t
val partitioni_tf : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> bool) -> ('a, 'b, 'cmp) t * ('a, 'b, 'cmp) t
val partition_tf : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> f:('b -> bool) -> ('a, 'b, 'cmp) t * ('a, 'b, 'cmp) t
val combine_errors : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b Base__.Or_error.t, 'cmp) t -> ('a, 'b, 'cmp) t Base__.Or_error.t
val compare_direct : comparator:('a, 'cmp) Base__.Comparator.t -> ('b -> 'b -> int) -> ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t -> int
val equal : comparator:('a, 'cmp) Base__.Comparator.t -> ('b -> 'b -> bool) -> ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t -> bool
val keys : ('a, 'b, 'c) t -> 'a list
val data : ('a, 'b, 'c) t -> 'b list
val to_alist : ?key_order:[ `Decreasing | `Increasing ] -> ('a, 'b, 'c) t -> ('a * 'b) list
val merge : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'c, 'cmp) t -> f:(key:'a -> ('b, 'c) Base__Map_intf.Merge_element.t -> 'd option) -> ('a, 'd, 'cmp) t
val merge_skewed : comparator:('k, 'cmp) Base__.Comparator.t -> ('k, 'v, 'cmp) t -> ('k, 'v, 'cmp) t -> combine:(key:'k -> 'v -> 'v -> 'v) -> ('k, 'v, 'cmp) t
val symmetric_diff : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t -> data_equal:('b -> 'b -> bool) -> ('a, 'b) Base__Map_intf.Symmetric_diff_element.t Base__.Sequence.t
val fold_symmetric_diff : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t -> data_equal:('b -> 'b -> bool) -> init:'c -> f:('c -> ('a, 'b) Base__Map_intf.Symmetric_diff_element.t -> 'c) -> 'c
val min_elt : ('a, 'b, 'cmp) t -> ('a * 'b) option
val min_elt_exn : ('a, 'b, 'cmp) t -> 'a * 'b
val max_elt : ('a, 'b, 'cmp) t -> ('a * 'b) option
val max_elt_exn : ('a, 'b, 'cmp) t -> 'a * 'b
val for_all : ('a, 'b, 'cmp) t -> f:('b -> bool) -> bool
val for_alli : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> bool) -> bool
val exists : ('a, 'b, 'cmp) t -> f:('b -> bool) -> bool
val existsi : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> bool) -> bool
val count : ('a, 'b, 'cmp) t -> f:('b -> bool) -> int
val counti : ('a, 'b, 'cmp) t -> f:(key:'a -> data:'b -> bool) -> int
val split : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> ('a, 'b, 'cmp) t * ('a * 'b) option * ('a, 'b, 'cmp) t
val append : comparator:('a, 'cmp) Base__.Comparator.t -> lower_part:('a, 'b, 'cmp) t -> upper_part:('a, 'b, 'cmp) t -> [ `Ok of ('a, 'b, 'cmp) t | `Overlapping_key_ranges ]
val subrange : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> lower_bound:'a Base__.Maybe_bound.t -> upper_bound:'a Base__.Maybe_bound.t -> ('a, 'b, 'cmp) t
val fold_range_inclusive : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> min:'a -> max:'a -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'c
val range_to_alist : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> min:'a -> max:'a -> ('a * 'b) list
val closest_key : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> [ `Greater_or_equal_to | `Greater_than | `Less_or_equal_to | `Less_than ] -> 'a -> ('a * 'b) option
val nth : ('a, 'b, 'cmp) t -> int -> ('a * 'b) option
val nth_exn : ('a, 'b, 'cmp) t -> int -> 'a * 'b
val rank : comparator:('a, 'cmp) Base__.Comparator.t -> ('a, 'b, 'cmp) t -> 'a -> int option
val to_tree : ('a, 'b, 'cmp) t -> ('a, 'b, 'cmp) t
val to_sequence : comparator:('a, 'cmp) Base__.Comparator.t -> ?order:[ `Decreasing_key | `Increasing_key ] -> ?keys_greater_or_equal_to:'a -> ?keys_less_or_equal_to:'a -> ('a, 'b, 'cmp) t -> ('a * 'b) Base__.Sequence.t
val binary_search_segmented : comparator:('k, 'cmp) Base__.Comparator.t -> ('k, 'v, 'cmp) t -> segment_of:(key:'k -> data:'v -> [ `Left | `Right ]) -> Base__.Binary_searchable.Which_target_by_segment.t -> ('k * 'v) option
val binary_search_subrange : comparator:('k, 'cmp) Base__.Comparator.t -> ('k, 'v, 'cmp) t -> compare:(key:'k -> data:'v -> 'bound -> int) -> lower_bound:'bound Base__.Maybe_bound.t -> upper_bound:'bound Base__.Maybe_bound.t -> ('k, 'v, 'cmp) t
val key_set : comparator:('k, 'cmp) Comparator.t -> ('k, _, 'cmp) t -> ('k, 'cmp) Base.Set.t
val validate : name:('a -> Base.String.t) -> 'b Validate.check -> ('a, 'b, _) t Validate.check
val validatei : name:('k -> Base.String.t) -> ('k * 'v) Validate.check -> ('k, 'v, _) t Validate.check
val quickcheck_observer : 'k Quickcheck.Observer.t -> 'v Quickcheck.Observer.t -> ('k, 'v, 'cmp) t Quickcheck.Observer.t
val quickcheck_shrinker : comparator:('k, 'cmp) Comparator.t -> 'k Quickcheck.Shrinker.t -> 'v Quickcheck.Shrinker.t -> ('k, 'v, 'cmp) t Quickcheck.Shrinker.t
OCaml

Innovation. Community. Security.