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

Function applicationCount

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

Number of function-application nodes in a MathJSON tree.

(x: MathJSON)

Source from the content-addressed store, hash-verified

743 Array.isArray(m) &&
744 typeof m[0] === 'string' &&
745 !m[0].startsWith('_') &&
746 m.length > 1 &&
747 m.slice(1).every((a) => typeof a === 'string' && a.startsWith('_')) &&
748 new Set(m.slice(1)).size === m.length - 1
749 );
750}
751

Callers 1

compileEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected