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

Function guardShellPayload

scripts/fungrim/compile-rules.ts:204–210  ·  view source on GitHub ↗

The non-wildcard MathJSON payload(s) of a guard (for shell collection).

(g: GuardSpec)

Source from the content-addressed store, hash-verified

202 return true;
203}
204
205/** The non-wildcard MathJSON payload(s) of a guard (for shell collection). */
206function guardShellPayload(g: GuardSpec): MathJSON {
207 if (g.k === 'cmp' || g.k === 'part-cmp') return g.bound;
208 if (g.k === 'member') return g.set;
209 if (g.k === 'ne') return [g.lhs, g.rhs];
210 if (g.k === 'eval') return g.pred;
211 return null;
212}
213

Callers 1

compileEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected