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

Function isEmpty

packages/effect/src/TxHashSet.ts:498–502  ·  view source on GitHub ↗
(self: TxHashSet<V>)

Source from the content-addressed store, hash-verified

496 * @since 2.0.0
497 */
498export const isEmpty = <V>(self: TxHashSet<V>): Effect.Effect<boolean> =>
499 Effect.gen(function*() {
500 const set = yield* TxRef.get(self.ref)
501 return HashSet.isEmpty(set)
502 })
503
504/**
505 * Removes all values from the TxHashSet.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
isEmptyMethod · 0.65

Tested by

no test coverage detected