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

Function size

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

Source from the content-addressed store, hash-verified

468 * @since 2.0.0
469 */
470export const size = <V>(self: TxHashSet<V>): Effect.Effect<number> =>
471 Effect.gen(function*() {
472 const set = yield* TxRef.get(self.ref)
473 return HashSet.size(set)
474 })
475
476/**
477 * Checks whether the TxHashSet is empty.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected