module Elt : sig ... end with type t = t and type comparator_witness = comparator_witnessmodule Tree : sig ... endinclude Core_kernel.Core_set_intf.S_plain with module Elt := Elt and module Tree := Treemodule Elt : sig ... endmodule Tree : Core_kernel.Core_set_intf.Make_S_plain_tree(Elt).Sinclude sig ... endval sexp_of_t : t ‑> Sexplib.Sexp.tval compare : t ‑> t ‑> Core_kernel__.Import.intinclude Core_kernel.Core_set_intf.Creators_and_accessors0 with type (a, b) set := (a, b) Base.Set.t with type t := t with type tree := Tree.t with type elt := Elt.t with type comparator_witness := Elt.comparator_witnessinclude Core_kernel.Core_set_intf.Accessors0include Core_kernel.Core_set_intf.Set_intf.Accessors0include Base.Container.S0val length : t ‑> intval is_empty : t ‑> booliter must allow exceptions raised in f to escape, terminating the iteration
cleanly. The same holds for all functions below taking an f.
val fold_result : t ‑> init:'accum ‑> f:('accum ‑> elt ‑> ('accum, 'e) Base.Result.t) ‑> ('accum, 'e) Base.Result.tfold_result t ~init ~f is a short-circuiting version of fold that runs in the
Result monad. If f returns an Error _, that value is returned without any
additional invocations of f.
val fold_until : t ‑> init:'accum ‑> f:('accum ‑> elt ‑> ('accum, 'stop) Base.Container_intf.Continue_or_stop.t) ‑> ('accum, 'stop) Base.Container_intf.Finished_or_stopped_early.tfold_until t ~init ~f is a short-circuiting version of fold. If f
returns Stop _ the computation ceases and results in that value. If f returns
Continue _, the fold will proceed.
Returns true if and only if there exists an element for which the provided
function evaluates to true. This is a short-circuiting operation.
Returns true if and only if the provided function evaluates to true for all
elements. This is a short-circuiting operation.
val sum : (module Base.Commutative_group.S with type t = 'sum) ‑> t ‑> f:(elt ‑> 'sum) ‑> 'sumReturns the sum of f i for i in the container
val invariants : t ‑> boolval symmetric_diff : t ‑> t ‑> (elt, elt) Base.Either.t Base.Sequence.tval fold_until : t ‑> init:'b ‑> f:('b ‑> elt ‑> ('b, 'stop) Core_kernel.Core_set_intf.Set_intf.Continue_or_stop.t) ‑> ('b, 'stop) Core_kernel.Core_set_intf.Set_intf.Finished_or_stopped_early.tval to_sequence : ?order:[ `Increasing | `Decreasing ] ‑> ?greater_or_equal_to:elt ‑> ?less_or_equal_to:elt ‑> t ‑> elt Base.Sequence.tval merge_to_sequence : ?order:[ `Increasing | `Decreasing ] ‑> ?greater_or_equal_to:elt ‑> ?less_or_equal_to:elt ‑> t ‑> t ‑> (elt, elt) Core_kernel.Core_set_intf.Set_intf.Merge_to_sequence_element.t Base.Sequence.tval to_map : t ‑> f:(elt ‑> 'data) ‑> (elt, 'data, comparator_witness) Core_kernel.Core_set_intf.Map.tval shrinker : elt Core_kernel.Quickcheck.Shrinker.t ‑> t Core_kernel.Quickcheck.Shrinker.tinclude Core_kernel.Core_set_intf.Creators0 with type t := t with type tree := tree with type elt := elt with type comparator_witness := comparator_witnessinclude Core_kernel.Core_set_intf.Set_intf.Creators0val empty : tval of_sorted_array : elt array ‑> t Base.Or_error.tval of_hash_set : elt Core_kernel.Hash_set.t ‑> tval of_hashtbl_keys : (elt, _) Core_kernel__.Core_hashtbl.t ‑> tval of_map_keys : (elt, _, comparator_witness) Core_kernel.Core_set_intf.Map.t ‑> tmodule Provide_bin_io : functor (Elt : sig ... end with type t := Elt.t) -> Core_kernel.Core_set_intf.Binable.S with type t := tmodule Provide_hash : functor (Elt : Core_kernel__.Import.Hasher.S with type t := Elt.t) -> sig ... end with type t := tinclude Core_kernel.Sexpable.S with type t := tval t_of_sexp : Base__.Sexplib.Sexp.t ‑> tval sexp_of_t : t ‑> Base__.Sexplib.Sexp.t