Int
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
add
RES
let add: (t, key) => unitclear
RES
let clear: t => unitcopy
RES
let copy: t => tforEach
RES
let forEach: (t, key => unit) => unitforEachU
Deprecated
Use forEach instead
RES
let forEachU: (t, key => unit) => unitfromArray
RES
let fromArray: array<key> => tgetBucketHistogram
RES
let getBucketHistogram: t => array<int>has
RES
let has: (t, key) => boolisEmpty
RES
let isEmpty: t => boolkey
RES
type key = intlogStats
RES
let logStats: t => unitmake
RES
let make: (~hintSize: int) => tmergeMany
RES
let mergeMany: (t, array<key>) => unitreduce
RES
let reduce: (t, 'c, ('c, key) => 'c) => 'creduceU
Deprecated
Use reduce instead
RES
let reduceU: (t, 'c, ('c, key) => 'c) => 'cremove
RES
let remove: (t, key) => unitsize
RES
let size: t => intt
RES
type ttoArray
RES
let toArray: t => array<key>