Hash_set.PolyA hash set that uses polymorphic comparison
type nonrec 'a t = 'a tinclude Sexpable.S1 with type 'a t := 'a tval t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.tinclude Creators_generic with type 'a t := 'a t with type 'a elt = 'a with type ('key, 'z) create_options
:= ('key, 'z) create_options_without_first_class_moduleval create : ('a, unit -> 'a t) create_options_without_first_class_moduleval of_list : ('a, 'a elt list -> 'a t) create_options_without_first_class_moduleinclude Accessors with type 'a t := 'a t with type 'a elt := 'a eltval mem : 'a t -> 'a -> booloverride Container.Generic.mem
val add : 'a t -> 'a -> unitval strict_add : 'a t -> 'a -> unit Or_error.tstrict_add t x returns Ok () if the x was not in t, or an Error if it was.
val strict_add_exn : 'a t -> 'a -> unitval remove : 'a t -> 'a -> unitval strict_remove : 'a t -> 'a -> unit Or_error.tstrict_remove t x returns Ok () if the x was in t, or an Error if it was not.
val strict_remove_exn : 'a t -> 'a -> unitval clear : 'a t -> unitval filter_inplace : 'a t -> f:('a -> bool) -> unitinter t1 t2 computes the set intersection of t1 and t2. Runs in O(min(length t1, length t2)). Behavior is undefined if t1 and t2 don't have the same equality function.