type 'a t = 'a Base.Hash_set.t
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
include Base.Container.Generic with type 'a elt := 'a and type 'a t := 'a t
val length : 'a t -> intval is_empty : 'a t -> boolval iter : 'a t -> f:('a -> unit) -> unitval fold : 'a t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accumval fold_result : 'a t -> init:'accum -> f:('accum -> 'a -> ('accum, 'e) Base.Result.t) -> ('accum, 'e) Base.Result.tval fold_until : 'a t -> init:'accum -> f:('accum -> 'a -> ('accum, 'final) Base__Container_intf.Export.Continue_or_stop.t) -> finish:('accum -> 'final) -> 'finalval exists : 'a t -> f:('a -> bool) -> boolval for_all : 'a t -> f:('a -> bool) -> boolval count : 'a t -> f:('a -> bool) -> intval sum : (module Base__Container_intf.Summable with type t = 'sum) -> 'a t -> f:('a -> 'sum) -> 'sumval find : 'a t -> f:('a -> bool) -> 'a optionval find_map : 'a t -> f:('a -> 'b option) -> 'b optionval to_list : 'a t -> 'a listval to_array : 'a t -> 'a arrayval min_elt : 'a t -> compare:('a -> 'a -> int) -> 'a optionval max_elt : 'a t -> compare:('a -> 'a -> int) -> 'a option
val mem : 'a t -> 'a -> booloverride
Container.Generic.mem
val add : 'a t -> 'a -> unitval strict_add : 'a t -> 'a -> unit Base.Or_error.tstrict_add t xreturnsOk ()if thexwas not int, or anErrorif it was.
val strict_add_exn : 'a t -> 'a -> unitval remove : 'a t -> 'a -> unitval strict_remove : 'a t -> 'a -> unit Base.Or_error.tstrict_remove t xreturnsOk ()if thexwas int, or anErrorif it was not.
val strict_remove_exn : 'a t -> 'a -> unitval clear : 'a t -> unitval equal : 'a t -> 'a t -> boolval filter : 'a t -> f:('a -> bool) -> 'a tval filter_inplace : 'a t -> f:('a -> bool) -> unitval inter : 'a t -> 'a t -> 'a tinter t1 t2computes the set intersection oft1andt2. Runs in O(min(length t1, length t2)). Behavior is undefined ift1andt2don't have the same equality function.
val union : 'a t -> 'a t -> 'a tval diff : 'a t -> 'a t -> 'a tval of_hashtbl_keys : ('a, _) Base.Hashtbl.t -> 'a tval to_hashtbl : 'a t -> f:('key -> 'data) -> ('key, 'data) Base.Hashtbl.t
val hashable : 'key t -> 'key Hashtbl.Hashable.t
module type Elt_plain = Hashtbl.Key_plainmodule type Elt = Hashtbl.Keymodule type Elt_binable = Hashtbl.Key_binablemodule type S_plain = sig ... endmodule type S = sig ... endmodule type S_binable = sig ... endmodule Using_hashable : sig ... endmodule Poly : sig ... endA hash set that uses polymorphic comparison.
module Make_binable : functor (Elt : Elt_binable) -> S_binable with type elt = Elt.tmodule type Sexp_of_m = sig ... endmodule type M_of_sexp = sig ... endval sexp_of_m__t : (module Sexp_of_m with type t = 'elt) -> 'elt t -> Base.Sexp.tval m__t_of_sexp : (module M_of_sexp with type t = 'elt) -> Base.Sexp.t -> 'elt t