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

Function and

src/compute-engine/interval/comparison.ts:120–124  ·  view source on GitHub ↗
(a: BoolInterval, b: BoolInterval)

Source from the content-addressed store, hash-verified

118 if (isEmpty(b)) return restrict('maybe', () => a);
119 if (Array.isArray(a) || Array.isArray(b)) {
120 if (!Array.isArray(a) || !Array.isArray(b)) return { lo: NaN, hi: NaN };
121 if (a.length !== b.length) return { kind: 'entire' };
122 return a.map((x, i) => hullValues(x, b[i]));
123 }
124 if (isVerdict(a) || isVerdict(b)) {
125 if (!isVerdict(a) || !isVerdict(b)) return { lo: NaN, hi: NaN };
126 return a === b ? a : 'maybe';
127 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected