Module Using_comparator.Tree
type ('a, 'cmp) tA
Tree.tcontains just the tree data structure that a set is based on, without including the comparator. Accordingly, any operation on aTree.tmust also take as an argument the corresponding comparator.
val sexp_of_t : ('a -> Base.Sexp.t) -> ('cmp -> Base.Sexp.t) -> ('a, 'cmp) t -> Base.Sexp.t
val t_of_sexp_direct : comparator:('elt, 'cmp) Base.Comparator.t -> (Base.Sexp.t -> 'elt) -> Base.Sexp.t -> ('elt, 'cmp) t
module Named : sig ... endinclude Base__.Set_intf.Creators_and_accessors2_with_comparator with type ('a, 'b) set := ('a, 'b) t with type ('a, 'b) t := ('a, 'b) t with type ('a, 'b) tree := ('a, 'b) t with type ('a, 'b) named := ('a, 'b) Named.t with module Named := Named
include Base__.Set_intf.Accessors2_with_comparator with type ('a, 'b) t := ('a, 'b) t with type ('a, 'b) tree := ('a, 'b) t with type ('a, 'b) named := ('a, 'b) Named.t with module Named := Named
val length : ('a, 'b) t -> intval is_empty : ('a, 'b) t -> boolval iter : ('a, 'b) t -> f:('a -> unit) -> unitval fold : ('a, 'b) t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accumval fold_result : ('a, 'b) t -> init:'accum -> f:('accum -> 'a -> ('accum, 'e) Base.Result.t) -> ('accum, 'e) Base.Result.tval exists : ('a, 'b) t -> f:('a -> bool) -> boolval for_all : ('a, 'b) t -> f:('a -> bool) -> boolval count : ('a, 'b) t -> f:('a -> bool) -> intval sum : (module Base__.Container_intf.Summable with type t = 'sum) -> ('a, 'b) t -> f:('a -> 'sum) -> 'sumval find : ('a, 'b) t -> f:('a -> bool) -> 'a optionval find_map : ('a, 'b) t -> f:('a -> 'b option) -> 'b optionval to_list : ('a, 'b) t -> 'a listval to_array : ('a, 'b) t -> 'a arrayval invariants : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> boolval mem : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> 'a -> boolval add : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> 'a -> ('a, 'b) tval remove : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> 'a -> ('a, 'b) tval union : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) tval inter : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) tval diff : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) tval symmetric_diff : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'a) Base__.Either.t Base.Sequence.tval compare_direct : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> intval equal : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> boolval is_subset : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> of_:('a, 'b) t -> boolval fold_until : ('a, 'b) t -> init:'accum -> f:('accum -> 'a -> ('accum, 'final) Base__.Container_intf.Export.Continue_or_stop.t) -> finish:('accum -> 'final) -> 'finalval fold_right : ('a, 'b) t -> init:'accum -> f:('a -> 'accum -> 'accum) -> 'accumval iter2 : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t -> f:([ `Both of 'a * 'a | `Left of 'a | `Right of 'a ] -> unit) -> unitval filter : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> f:('a -> bool) -> ('a, 'b) tval partition_tf : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> f:('a -> bool) -> ('a, 'b) t * ('a, 'b) tval elements : ('a, 'b) t -> 'a listval min_elt : ('a, 'b) t -> 'a optionval min_elt_exn : ('a, 'b) t -> 'aval max_elt : ('a, 'b) t -> 'a optionval max_elt_exn : ('a, 'b) t -> 'aval choose : ('a, 'b) t -> 'a optionval choose_exn : ('a, 'b) t -> 'aval split : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> 'a -> ('a, 'b) t * 'a option * ('a, 'b) tval group_by : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> equiv:('a -> 'a -> bool) -> ('a, 'b) t listval find_exn : ('a, 'b) t -> f:('a -> bool) -> 'aval nth : ('a, 'b) t -> int -> 'a optionval remove_index : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> int -> ('a, 'b) tval to_tree : ('a, 'b) t -> ('a, 'b) tval to_sequence : comparator:('a, 'cmp) Base.Comparator.t -> ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:'a -> ?less_or_equal_to:'a -> ('a, 'b) t -> 'a Base.Sequence.tval binary_search : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> compare:('a -> 'key -> int) -> [ `First_equal_to | `First_greater_than_or_equal_to | `First_strictly_greater_than | `Last_equal_to | `Last_less_than_or_equal_to | `Last_strictly_less_than ] -> 'key -> 'a optionval binary_search_segmented : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> segment_of:('a -> [ `Left | `Right ]) -> [ `First_on_right | `Last_on_left ] -> 'a optionval merge_to_sequence : comparator:('a, 'cmp) Base.Comparator.t -> ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:'a -> ?less_or_equal_to:'a -> ('a, 'b) t -> ('a, 'b) t -> ('a, 'a) Base__.Set_intf.Merge_to_sequence_element.t Base.Sequence.t
include Base__.Set_intf.Creators2_with_comparator with type ('a, 'b) t := ('a, 'b) t with type ('a, 'b) tree := ('a, 'b) t with type ('a, 'b) set := ('a, 'b) t
val empty : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) tval singleton : comparator:('a, 'cmp) Base.Comparator.t -> 'a -> ('a, 'b) tval union_list : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t list -> ('a, 'b) tval of_list : comparator:('a, 'cmp) Base.Comparator.t -> 'a list -> ('a, 'b) tval of_array : comparator:('a, 'cmp) Base.Comparator.t -> 'a array -> ('a, 'b) tval of_sorted_array : comparator:('a, 'cmp) Base.Comparator.t -> 'a array -> ('a, 'b) t Base.Or_error.tval of_sorted_array_unchecked : comparator:('a, 'cmp) Base.Comparator.t -> 'a array -> ('a, 'b) tval of_increasing_iterator_unchecked : comparator:('a, 'cmp) Base.Comparator.t -> len:int -> f:(int -> 'a) -> ('a, 'b) tval stable_dedup_list : comparator:('a, 'cmp) Base.Comparator.t -> 'a list -> 'a listval map : comparator:('b, 'cmp) Base.Comparator.t -> ('a, 'b) t -> f:('a -> 'b) -> ('a, 'b) tval filter_map : comparator:('b, 'cmp) Base.Comparator.t -> ('a, 'b) t -> f:('a -> 'b option) -> ('a, 'b) tval of_tree : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b) t -> ('a, 'b) t
val empty_without_value_restriction : (_, _) t