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

Function hasPartHead

scripts/fungrim/guard-census.ts:35–40  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

33// boxing can collapse the part term. Mirrors the P2/P3/P4 test suites.
34const PART_HEADS = ['Real', 'Imaginary', 'Abs', 'Argument'];
35function hasPartHead(x: unknown): boolean {
36 return (
37 Array.isArray(x) &&
38 (PART_HEADS.includes(x[0] as string) || x.some(hasPartHead))
39 );
40}
41
42function conjunctsOf(assumptions: unknown): unknown[] {
43 if (Array.isArray(assumptions) && assumptions[0] === 'And')

Callers 1

classifyEntryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected