Module Set.Using_comparator

Using comparator is a similar interface as the toplevel of Set, except the functions take a ~comparator:('elt, 'cmp) Comparator.t where the functions at the toplevel of Set takes a ('elt, 'cmp) comparator.

type nonrec ('elt, 'cmp) t = ('elt'cmp) t
val sexp_of_t : ('elt -> Sexp.t) -> ('cmp -> Sexp.t) -> ('elt'cmp) t -> Sexp.t
val t_of_sexp_direct : comparator:('elt'cmp) Comparator.t -> (Sexp.t -> 'elt) -> Sexp.t -> ('elt'cmp) t
module Tree : sig ... end
include Base__.Set_intf.Accessors2 with type ('a, 'b) t := ('a'b) t with type ('a, 'b) tree := ('a'b) Tree.t with type ('a, 'b) named := ('a'b) Named.t
val merge_to_sequence : ?⁠order:[ `Increasing | `Decreasing ] -> ?⁠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 Sequence.t
val binary_search_segmented : ('a'b) t -> segment_of:('a -> [ `Left | `Right ]) -> [ `Last_on_left | `First_on_right ] -> 'a option
val to_sequence : ?⁠order:[ `Increasing | `Decreasing ] -> ?⁠greater_or_equal_to:'a -> ?⁠less_or_equal_to:'a -> ('a'b) t -> 'a Sequence.t
val to_tree : ('a'b) t -> ('a'b) Tree.t
val remove_index : ('a'b) t -> int -> ('a'b) t
val nth : ('a'b) t -> int -> 'a option
val find_exn : ('a'b) t -> f:('a -> bool) -> 'a
val group_by : ('a'b) t -> equiv:('a -> 'a -> bool) -> ('a'b) t list
val split : ('a'b) t -> 'a -> ('a'b) t * 'a option * ('a'b) t
val choose_exn : ('a'b) t -> 'a
val choose : ('a'b) t -> 'a option
val max_elt_exn : ('a'b) t -> 'a
val max_elt : ('a'b) t -> 'a option
val min_elt_exn : ('a'b) t -> 'a
val min_elt : ('a'b) t -> 'a option
val elements : ('a'b) t -> 'a list
val partition_tf : ('a'b) t -> f:('a -> bool) -> ('a'b) t * ('a'b) t
val filter : ('a'b) t -> f:('a -> bool) -> ('a'b) t
val iter2 : ('a'b) t -> ('a'b) t -> f:([ `Left of 'a | `Right of 'a | `Both of 'a * 'a ] -> unit) -> unit
val fold_right : ('a'b) t -> init:'b -> f:('a -> 'b -> 'b) -> 'b
val fold_until : ('a'b) t -> init:'b -> f:('b -> 'a -> ('b'final) Base__.Container_intf.Export.Continue_or_stop.t) -> finish:('b -> 'final) -> 'final
module Named : sig ... end
val is_subset : ('a'b) t -> of_:('a'b) t -> bool
val equal : ('a'b) t -> ('a'b) t -> bool
val compare_direct : ('a'b) t -> ('a'b) t -> int
val symmetric_diff : ('a'b) t -> ('a'b) t -> ('a'a) Base__.Either.t Sequence.t
val diff : ('a'b) t -> ('a'b) t -> ('a'b) t
val inter : ('a'b) t -> ('a'b) t -> ('a'b) t
val union : ('a'b) t -> ('a'b) t -> ('a'b) t
val remove : ('a'b) t -> 'a -> ('a'b) t
val add : ('a'b) t -> 'a -> ('a'b) t
val mem : ('a'b) t -> 'a -> bool
val invariants : ('a'b) t -> bool
include Container.S1_phantom_invariant with type ('a, 'b) t := ('a'b) t
val mem : ('a'b) t -> 'a -> equal:('a -> 'a -> bool) -> bool
val length : ('a'b) t -> int
val is_empty : ('a'b) t -> bool
val iter : ('a'b) t -> f:('a -> unit) -> unit
val fold : ('a'b) t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum
val fold_result : ('a'b) t -> init:'accum -> f:('accum -> 'a -> ('accum'e) Result.t) -> ('accum'e) Result.t
val fold_until : ('a'b) t -> init:'accum -> f:('accum -> 'a -> ('accum'final) Base__.Container_intf.Export.Continue_or_stop.t) -> finish:('accum -> 'final) -> 'final
val exists : ('a'b) t -> f:('a -> bool) -> bool
val for_all : ('a'b) t -> f:('a -> bool) -> bool
val count : ('a'b) t -> f:('a -> bool) -> int
val sum : (module Base__.Container_intf.Summable with type t = 'sum) -> ('a'b) t -> f:('a -> 'sum) -> 'sum
val find : ('a'b) t -> f:('a -> bool) -> 'a option
val find_map : ('a'b) t -> f:('a -> 'b option) -> 'b option
val to_list : ('a'b) t -> 'a list
val to_array : ('a'b) t -> 'a array
val min_elt : ('a'b) t -> compare:('a -> 'a -> int) -> 'a option
val max_elt : ('a'b) t -> compare:('a -> 'a -> int) -> 'a option
include Base__.Set_intf.Creators2_with_comparator with type ('a, 'b) t := ('a'b) t with type ('a, 'b) tree := ('a'b) Tree.t with type ('a, 'b) set := ('a'b) t
val of_tree : comparator:('a'cmp) Comparator.t -> ('a'b) Tree.t -> ('a'b) t
val filter_map : comparator:('b'cmp) Comparator.t -> ('a'b) t -> f:('a -> 'b option) -> ('a'b) t
val map : comparator:('b'cmp) Comparator.t -> ('a'b) t -> f:('a -> 'b) -> ('a'b) t
val stable_dedup_list : comparator:('a'cmp) Comparator.t -> 'a list -> 'a list
val of_increasing_iterator_unchecked : comparator:('a'cmp) Comparator.t -> len:int -> f:(int -> 'a) -> ('a'b) t
val of_sorted_array_unchecked : comparator:('a'cmp) Comparator.t -> 'a array -> ('a'b) t
val of_sorted_array : comparator:('a'cmp) Comparator.t -> 'a array -> ('a'b) t Or_error.t
val of_array : comparator:('a'cmp) Comparator.t -> 'a array -> ('a'b) t
val of_list : comparator:('a'cmp) Comparator.t -> 'a list -> ('a'b) t
val union_list : comparator:('a'cmp) Comparator.t -> ('a'b) t list -> ('a'b) t
val singleton : comparator:('a'cmp) Comparator.t -> 'a -> ('a'b) t
val empty : comparator:('a'cmp) Comparator.t -> ('a'b) t
val comparator : ('a'cmp) t -> ('a'cmp) Comparator.t
val hash_fold_direct : 'elt Hash.folder -> ('elt'cmp) t Hash.folder
module Empty_without_value_restriction : functor (Elt : Comparator.S1) -> sig ... end