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

Function isSpecialHeaded

scripts/fungrim/compile-rules.ts:725–729  ·  view source on GitHub ↗
(side: MathJSON)

Source from the content-addressed store, hash-verified

723 'Hold',
724]);
725
726function isSpecialHeaded(side: MathJSON): boolean {
727 return (
728 Array.isArray(side) && typeof side[0] === 'string' && !CORE_HEADS.has(side[0])
729 );
730}
731
732/** A match of the form `[Head, _w1, _w2, …]` (distinct bare wildcards only):

Callers 1

orientEntryFunction · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected