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

Function isInfiniteBound

scripts/fungrim/compile-rules.ts:228–232  ·  view source on GitHub ↗
(b: MathJSON)

Source from the content-addressed store, hash-verified

226 if (typeof b === 'string') return INFINITE_BOUNDS.has(b);
227 if (Array.isArray(b) && b[0] === 'Negate') return isInfiniteBound(b[1]);
228 return false;
229}
230
231function flattenAnd(a: MathJSON): MathJSON[] {
232 if (a === null || a === undefined) return [];
233 if (Array.isArray(a) && a[0] === 'And')
234 return a.slice(1).flatMap((x) => flattenAnd(x));
235 return [a];

Callers 2

pushBoundFunction · 0.85
pushPartBoundFunction · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected