Module Belt.HashSet

module HashSet: Belt_HashSet
Belt.HashSet The top level provides generic mutable hash set operations. It also has two specialized inner modules Belt.HashSet.Int and Belt.HashSet.String

module Int: Belt_HashSetInt
Specalized when key type is int, more efficient than the generic type
module String: Belt_HashSetString
Specalized when key type is string, more efficient than the generic type
type ('a, 'id) t 

The type of hash tables from type 'a to type 'b.

type ('a, 'id) id = ('a, 'id) Belt_Id.hashable 
val make : hintSize:int -> id:('a, 'id) id -> ('a, 'id) t
val clear : ('a, 'id) t -> unit
val isEmpty : ('a, 'b) t -> bool
val add : ('a, 'id) t -> 'a -> unit
val copy : ('a, 'id) t -> ('a, 'id) t
val has : ('a, 'id) t -> 'a -> bool
val remove : ('a, 'id) t -> 'a -> unit
val forEachU : ('a, 'id) t -> ('a -> unit [@bs]) -> unit
val forEach : ('a, 'id) t -> ('a -> unit) -> unit
Order unspecified.
val reduceU : ('a, 'id) t -> 'c -> ('c -> 'a -> 'c [@bs]) -> 'c
val reduce : ('a, 'id) t -> 'c -> ('c -> 'a -> 'c) -> 'c
Order unspecified.
val size : ('a, 'id) t -> int
val logStats : ('a, 'b) t -> unit
val toArray : ('a, 'id) t -> 'a array
val fromArray : 'a array -> id:('a, 'id) id -> ('a, 'id) t
val mergeMany : ('a, 'id) t -> 'a array -> unit
val getBucketHistogram : ('a, 'b) t -> int array