effect-io-ai

Package: effect
Module: MutableHashSet

MutableHashSet.empty

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

Signature

declare const empty: <K = never>() => MutableHashSet<K>

Source

Since v2.0.0