MCPcopy Create free account
hub / github.com/Effect-TS/effect / empty

Function empty

packages/effect/src/TxHashSet.ts:181–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 * @since 2.0.0
180 */
181export const empty = <V = never>(): Effect.Effect<TxHashSet<V>> =>
182 Effect.gen(function*() {
183 const ref = yield* TxRef.make(HashSet.empty<V>())
184 return makeTxHashSet(ref)
185 })
186
187/**
188 * Creates a TxHashSet from a variable number of values.

Callers

nothing calls this directly

Calls 2

makeTxHashSetFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected