You are currently looking at the v6.0 - v8.2 docs (Reason v3.6 syntax edition). You can find the latest API docs here.
(These docs cover all versions between v3 to v8 and are equivalent to the old BuckleScript docs before the rebrand)
HashSetInt
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).
key
REtype key = int;
t
REtype t;
make
RElet make: (~hintSize: int) => t;
clear
RElet clear: t => unit;
isEmpty
RElet isEmpty: t => bool;
add
RElet add: (t, key) => unit;
copy
RElet copy: t => t;
has
RElet has: (t, key) => bool;
remove
RElet remove: (t, key) => unit;
forEachU
RElet forEachU: (t, [@bs] (key => unit)) => unit;
forEach
RElet forEach: (t, key => unit) => unit;
reduceU
RElet reduceU: (t, 'c, [@bs] (('c, key) => 'c)) => 'c;
reduce
RElet reduce: (t, 'c, ('c, key) => 'c) => 'c;
size
RElet size: t => int;
logStats
RElet logStats: t => unit;
toArray
RElet toArray: t => array(key);
fromArray
RElet fromArray: array(key) => t;
mergeMany
RElet mergeMany: (t, array(key)) => unit;
getBucketHistogram
RElet getBucketHistogram: t => array(int);