Module Base__.Hash_set
val sexp_of_t : ('a -> Base.Sexp.t) -> 'a t -> Base.Sexp.t
module Key = Base__.Hash_set_intf.Keymodule type Creators = Base__.Hash_set_intf.Creatorsmodule type Creators_generic = Base__.Hash_set_intf.Creators_generictype nonrec ('key, 'z) create_options= ('key, 'z) Base__.Hash_set_intf.create_options
include Creators with type 'a Creators.t := 'a t
val create : ?growth_allowed:bool -> ?size:int -> 'a Base__.Hash_set_intf.Key.t -> 'a tval of_list : ?growth_allowed:bool -> ?size:int -> 'a Base__.Hash_set_intf.Key.t -> 'a list -> 'a t
module type Accessors = Base__.Hash_set_intf.Accessorsinclude Accessors with type 'a Accessors.t := 'a t with type 'a Accessors.elt = 'a
val length : 'a t -> intval is_empty : 'a t -> boolval iter : 'a t -> f:('a elt -> unit) -> unitval fold : 'a t -> init:'accum -> f:('accum -> 'a elt -> 'accum) -> 'accumval fold_result : 'a t -> init:'accum -> f:('accum -> 'a elt -> ('accum, 'e) Base.Result.t) -> ('accum, 'e) Base.Result.tval fold_until : 'a t -> init:'accum -> f:('accum -> 'a elt -> ('accum, 'final) Base__.Container_intf.Continue_or_stop.t) -> finish:('accum -> 'final) -> 'finalval exists : 'a t -> f:('a elt -> bool) -> boolval for_all : 'a t -> f:('a elt -> bool) -> boolval count : 'a t -> f:('a elt -> bool) -> intval sum : (module Base__.Container_intf.Summable with type t = 'sum) -> 'a t -> f:('a elt -> 'sum) -> 'sumval find : 'a t -> f:('a elt -> bool) -> 'a elt optionval find_map : 'a t -> f:('a elt -> 'b option) -> 'b optionval to_list : 'a t -> 'a elt listval to_array : 'a t -> 'a elt arrayval min_elt : 'a t -> compare:('a elt -> 'a elt -> int) -> 'a elt optionval max_elt : 'a t -> compare:('a elt -> 'a elt -> int) -> 'a elt optionval 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 : 'key t -> 'key t -> 'key 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, 'b) Base.Hashtbl.t -> 'a tval to_hashtbl : 'key t -> f:('key -> 'data) -> ('key, 'data) Base.Hashtbl.t
type nonrec ('key, 'z) create_options_without_first_class_module= ('key, 'z) Base__.Hash_set_intf.create_options_without_first_class_module
module Poly : sig ... endA hash set that uses polymorphic comparison
module M : functor (Elt : Base.T.T) -> sig ... endMis meant to be used in combination with OCaml applicative functor types:
module 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