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

Function compare

scripts/fungrim/compile-rules.ts:636–646  ·  view source on GitHub ↗
(
          v: Expression,
          b: Expression
        )

Source from the content-addressed store, hash-verified

634 if (v === undefined) return false;
635 try {
636 return pred.subs(sub).evaluate().json === 'True';
637 } catch {
638 return false;
639 }
640 };
641 }
642 case 'cmp': {
643 const bound = boxGuardExpr(g.bound);
644 const compare = (
645 v: Expression,
646 b: Expression
647 ): boolean | undefined =>
648 g.op === 'gt'
649 ? v.isGreater(b)

Callers 1

buildGuardClosuresFunction · 0.70

Calls 4

isGreaterMethod · 0.65
isGreaterEqualMethod · 0.65
isLessMethod · 0.65
isLessEqualMethod · 0.65

Tested by

no test coverage detected