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

Function size

packages/effect/src/internal/trie.ts:246–246  ·  view source on GitHub ↗
(self: TR.Trie<V>)

Source from the content-addressed store, hash-verified

244
245/** @internal */
246export const size = <V>(self: TR.Trie<V>): number => (self as TrieImpl<V>)._root?.count ?? 0
247
248/** @internal */
249export const isEmpty = <V>(self: TR.Trie<V>): boolean => size(self) === 0

Callers 1

isEmptyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…