String
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
key
RESCRIPT
type key = stringt
RESCRIPT
type tmake
RESCRIPT
let make: (~hintSize: int) => tclear
RESCRIPT
let clear: t => unitisEmpty
RESCRIPT
let isEmpty: t => booladd
RESCRIPT
let add: (t, key) => unitcopy
RESCRIPT
let copy: t => thas
RESCRIPT
let has: (t, key) => boolremove
RESCRIPT
let remove: (t, key) => unitforEachU
RESCRIPT
let forEachU: (t, key => unit) => unitforEach
RESCRIPT
let forEach: (t, key => unit) => unitreduceU
RESCRIPT
let reduceU: (t, 'c, ('c, key) => 'c) => 'creduce
RESCRIPT
let reduce: (t, 'c, ('c, key) => 'c) => 'csize
RESCRIPT
let size: t => intlogStats
RESCRIPT
let logStats: t => unittoArray
RESCRIPT
let toArray: t => array<key>fromArray
RESCRIPT
let fromArray: array<key> => tmergeMany
RESCRIPT
let mergeMany: (t, array<key>) => unitgetBucketHistogram
RESCRIPT
let getBucketHistogram: t => array<int>