MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / countBy

Function countBy

scripts/fungrim/compile-rules.ts:1602–1606  ·  view source on GitHub ↗
(xs: ReadonlyArray<T>, key: (x: T) => string)

Source from the content-addressed store, hash-verified

1600 // then (e.g. the Tier-2 special-function kernels) are pruned here against
1601 // a live stock engine, so the artifact stays in sync with the engine it
1602 // ships with. (The loader also skips already-defined names at load time —
1603 // this keeps the artifact, not just the load, accurate.)
1604 const pruned: CompileResult['declarations'] = {};
1605 const builtinProbe = new ComputeEngine();
1606 const usedShells = new Set<string>();
1607 for (const r of rules) {
1608 collectSymbols(r.match, usedShells);
1609 collectSymbols(r.replace, usedShells);

Callers 1

mainFunction · 0.70

Calls 1

entriesMethod · 0.65

Tested by

no test coverage detected