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

Function replaceFn

test/compute-engine/rule-aggregation.test.ts:45–49  ·  view source on GitHub ↗
(expr: BoxedExpression)

Source from the content-addressed store, hash-verified

43 fire: (expr: Expression) => Expression | undefined
44): BoxedRule {
45 const replaceFn = (expr: Expression): RuleStep | undefined => {
46 const value = fire(expr);
47 if (value === undefined) return undefined;
48 return { value, because: id, purpose: 'simplify' } as RuleStep;
49 };
50 return {
51 _tag: 'boxed-rule',
52 match: undefined,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected