MCPcopy Create free account
hub / github.com/tinyplex/tinybase / pairCollSize2

Function pairCollSize2

src/common/pairs.ts:8–11  ·  view source on GitHub ↗
(
  pair: Pair<Coll<unknown>>,
  func: any = collSize2,
)

Source from the content-addressed store, hash-verified

6export const pairNew = <Value>(value: Value): Pair<Value> => [value, value];
7
8export const pairCollSize2 = (
9 pair: Pair<Coll<unknown>>,
10 func: any = collSize2,
11): number => func(pair[0]) + func(pair[1]);
12
13export const pairNewMap = <Value>(): Pair<IdMap<Value>> => [mapNew(), mapNew()];
14

Callers 1

getListenerStatsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…