WeakSet
t
RESCRIPT
type t<'a>
make
RESCRIPT
let make: unit => t<'a>
add
RESCRIPT
let add: (t<'a>, 'a) => t<'a>
delete
RESCRIPT
let delete: (t<'a>, 'a) => bool
has
RESCRIPT
let has: (t<'a>, 'a) => bool
ignore
RESCRIPT
let ignore: t<'a> => unit
ignore(weakSet)
ignores the provided weakSet and returns unit.
This helper is useful when you want to discard a value (for example, the result of an operation with side effects) without having to store or process it further.