Module HashSet.Make

Parameters

module Key : Stdlib.Hashtbl.HashedType

Signature

type elt = Key.t
type t
val create : int -> t
val singleton : elt -> t
val add : elt -> t -> unit
val remove : elt -> t -> unit
val remove_all : elt Iter.t -> t -> unit
val iter : t -> elt Iter.t
val seq : t -> elt Stdlib.Seq.t
val of_seq : elt Stdlib.Seq.t -> t
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val length : t -> int
val mem : t -> elt -> bool
val clear : t -> unit
val union_into : into:t -> t -> unit
val is_empty : t -> bool