Package: effect
Module: HashSet
Removes a value from the HashSet.
Time complexity: O(1) average
Example
// Syntax
import { HashSet, pipe } from "effect"
// with `data-last`, a.k.a. `pipeable` API
pipe(HashSet.make(0, 1, 2), HashSet.remove(0))
// or piped with the pipe function
HashSet.make(0, 1, 2).pipe(HashSet.remove(0))
// or with `data-first` API
HashSet.remove(HashSet.make(0, 1, 2), 0)
See
HashSet mutations are module:HashSet.add module:HashSet.toggle module:HashSet.beginMutation module:HashSet.endMutation module:HashSet.mutateSignature
declare const remove: { <A>(value: A): (self: HashSet<A>) => HashSet<A>; <A>(self: HashSet<A>, value: A): HashSet<A>; }
Since v2.0.0