Module Id.Set
module Elt : sig ... end with type t = t and type comparator_witness = comparator_witnessinclude Core_kernel.Set_intf.S with module Elt := Elt
module Elt : sig ... endmodule Tree : sig ... endinclude Core_kernel.Set_intf.S_plain with module Elt := Elt and module Tree := Tree
module Elt : sig ... endmodule Tree : Core_kernel.Set_intf.Make_S_plain_tree(Elt).Stype t= (Elt.t, Elt.comparator_witness) Base.Set.t
val compare : t -> t -> Core_kernel__.Import.intval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
type named= (Elt.t, Elt.comparator_witness) Core_kernel.Set_intf.Named.t
include Core_kernel.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 named := named with type comparator_witness := Elt.comparator_witness
include Core_kernel.Set_intf.Accessors0
include Core_kernel.Set_intf.Set.Accessors0
val length : t -> intval is_empty : t -> boolval iter : t -> f:(elt -> unit) -> unitval fold : t -> init:'accum -> f:('accum -> elt -> 'accum) -> 'accumval fold_result : t -> init:'accum -> f:('accum -> elt -> ('accum, 'e) Base.Result.t) -> ('accum, 'e) Base.Result.tval exists : t -> f:(elt -> bool) -> boolval for_all : t -> f:(elt -> bool) -> boolval count : t -> f:(elt -> bool) -> intval sum : (module Base__.Container_intf.Summable with type t = 'sum) -> t -> f:(elt -> 'sum) -> 'sumval find : t -> f:(elt -> bool) -> elt optionval find_map : t -> f:(elt -> 'a option) -> 'a optionval to_list : t -> elt listval to_array : t -> elt array
val invariants : t -> boolval mem : t -> elt -> boolval add : t -> elt -> tval remove : t -> elt -> tval union : t -> t -> tval inter : t -> t -> tval diff : t -> t -> tval symmetric_diff : t -> t -> (elt, elt) Base.Either.t Base.Sequence.tval compare_direct : t -> t -> intval equal : t -> t -> boolval is_subset : t -> of_:t -> bool
module Named : sig ... endval fold_until : t -> init:'b -> f:('b -> elt -> ('b, 'final) Base__.Set_intf.Continue_or_stop.t) -> finish:('b -> 'final) -> 'finalval fold_right : t -> init:'b -> f:(elt -> 'b -> 'b) -> 'bval iter2 : t -> t -> f:([ `Both of elt * elt | `Left of elt | `Right of elt ] -> unit) -> unitval filter : t -> f:(elt -> bool) -> tval partition_tf : t -> f:(elt -> bool) -> t * tval elements : t -> elt listval min_elt : t -> elt optionval min_elt_exn : t -> eltval max_elt : t -> elt optionval max_elt_exn : t -> eltval choose : t -> elt optionval choose_exn : t -> eltval split : t -> elt -> t * elt option * tval group_by : t -> equiv:(elt -> elt -> bool) -> t listval find_exn : t -> f:(elt -> bool) -> eltval nth : t -> int -> elt optionval remove_index : t -> int -> tval to_tree : t -> treeval to_sequence : ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:elt -> ?less_or_equal_to:elt -> t -> elt Base.Sequence.tval binary_search : t -> compare:(elt -> '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 -> elt optionval binary_search_segmented : t -> segment_of:(elt -> [ `Left | `Right ]) -> [ `First_on_right | `Last_on_left ] -> elt optionval merge_to_sequence : ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:elt -> ?less_or_equal_to:elt -> t -> t -> (elt, elt) Base__.Set_intf.Merge_to_sequence_element.t Base.Sequence.t
val to_map : t -> f:(elt -> 'data) -> (elt, 'data, comparator_witness) Base.Map.tval quickcheck_observer : elt Core_kernel.Quickcheck.Observer.t -> t Core_kernel.Quickcheck.Observer.tval quickcheck_shrinker : elt Core_kernel.Quickcheck.Shrinker.t -> t Core_kernel.Quickcheck.Shrinker.t
include Core_kernel.Set_intf.Creators0 with type t := t with type tree := tree with type elt := elt with type comparator_witness := comparator_witness
include Core_kernel.Set_intf.Set.Creators0
val empty : tval singleton : elt -> tval union_list : t list -> tval of_list : elt list -> tval of_array : elt array -> tval of_sorted_array : elt array -> t Base.Or_error.tval of_sorted_array_unchecked : elt array -> tval of_increasing_iterator_unchecked : len:int -> f:(int -> elt) -> tval stable_dedup_list : elt list -> elt listval map : ('a, 'b) set -> f:('a -> elt) -> tval filter_map : ('a, 'b) set -> f:('a -> elt option) -> tval of_tree : tree -> t
val of_hash_set : elt Core_kernel.Hash_set.t -> tval of_hashtbl_keys : (elt, _) Core_kernel.Hashtbl.t -> tval of_map_keys : (elt, _, comparator_witness) Base.Map.t -> tval quickcheck_generator : elt Core_kernel.Quickcheck.Generator.t -> t Core_kernel.Quickcheck.Generator.t
module Provide_of_sexp : functor (Elt : sig ... end with type t := Elt.t) -> sig ... end with type t := tmodule Provide_bin_io : functor (Elt : sig ... end with type t := Elt.t) -> Core_kernel.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 := t
val t_of_sexp : Base.Sexp.t -> tval sexp_of_t : t -> Base.Sexp.t
include Core_kernel.Set_intf.Binable.S with type t := t
include Core_kernel.Set_intf.Binable.S_only_functions with type t := t
val bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (int -> t) Bin_prot.Read.readerThis function only needs implementation if
texposed to be a polymorphic variant. Despite what the type reads, this does *not* produce a function after reading; instead it takes the constructor tag (int) before reading and reads the rest of the varianttafterwards.
val bin_shape_t : Bin_prot.Shape.tval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.t