MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / sum

Function sum

scripts/agent-eval/seq-matrix.mjs:129–129  ·  view source on GitHub ↗
(arr, f)

Source from the content-addressed store, hash-verified

127
128// ---- round-trips ----
129const sum = (arr, f) => arr.reduce((s, x) => s + (f(x) || 0), 0);
130const wTurns = sum(cells, c => c.with.turns), woTurns = sum(cells, c => c.without?.turns);
131const wCalls = sum(cells, c => c.with.cg.length);
132const tsAll = cells.every(c => c.with.seq[0] === 'TS');

Callers 2

measureMethod · 0.85
seq-matrix.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected