Module HashSet.Int
Specalized when key type is int, more efficient than the generic type
This module is Belt.HashSet specialized with key type to be a primitive type.
It is more efficient in general, the API is the same with Belt.HashSet except its key type is fixed, and identity is not needed(using the built-in one)
See Belt.HashSet
type key = inttype tval make : hintSize:int -> tval clear : t -> unitval isEmpty : t -> boolval add : t -> key -> unitval copy : t -> tval has : t -> key -> boolval remove : t -> key -> unitval forEachU : t -> (key -> unit) Js.Fn.arity1 -> unitval forEach : t -> (key -> unit) -> unitval reduceU : t -> 'c -> ('c -> key -> 'c) Js.Fn.arity2 -> 'cval reduce : t -> 'c -> ('c -> key -> 'c) -> 'cval size : t -> intval logStats : t -> unitval toArray : t -> key arrayval fromArray : key array -> tval mergeMany : t -> key array -> unitval getBucketHistogram : t -> int array