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

Function size

packages/effect/src/TxHashMap.ts:598–602  ·  view source on GitHub ↗
(self: TxHashMap<K, V>)

Source from the content-addressed store, hash-verified

596 * @since 2.0.0
597 */
598export const size = <K, V>(self: TxHashMap<K, V>): Effect.Effect<number> =>
599 Effect.gen(function*() {
600 const map = yield* TxRef.get(self.ref)
601 return HashMap.size(map)
602 })
603
604/**
605 * Checks whether the TxHashMap is empty.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected