Package: effect
Module: MutableHashSet
Creates an empty mutable hash set.
This function initializes and returns an empty MutableHashSet instance,
which allows for efficient storage and manipulation of unique elements.
Time complexity: O(1)
Example
import { MutableHashSet } from "effect"
type T = unknown // replace with your type
// in places where the type can't be inferred, replace with your type
const set: MutableHashSet.MutableHashSet<T> = MutableHashSet.empty<T>()
See
MutableHashSet constructors are module:MutableHashSet.make module:MutableHashSet.fromIterableSignature
declare const empty: <K = never>() => MutableHashSet<K>
Since v2.0.0