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

Function trailingBecause

test/compute-engine/rule-aggregation.test.ts:108–111  ·  view source on GitHub ↗
(set: BoxedRuleSet, expr: BoxedExpression)

Source from the content-addressed store, hash-verified

106 return steps.length ? steps[steps.length - 1].value : expr;
107 };
108 const trailingBecause = (set: BoxedRuleSet, expr: BoxedExpression) => {
109 const steps = replace(expr, set, REPLACE_OPTS);
110 return steps.length ? steps[steps.length - 1].because : null;
111 };
112
113 it('multi-fire + head change: same final value as the linear scan', () => {
114 // F(0) → F(1) → F(2) → G(99)

Callers 1

Calls 1

replaceFunction · 0.90

Tested by

no test coverage detected