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

Function asExamples

src/math-json/scripts/generate_OPERATORS.ts:106–111  ·  view source on GitHub ↗
(def: DefRecord)

Source from the content-addressed store, hash-verified

104}
105
106/** `args` split on the commas that separate PARAMETERS — those outside any
107 * `(`, `<` or `[` group. The `>` of an ARROW (`->`) closes nothing: without
108 * that exclusion a constructor argument containing an arrow
109 * (`list<(unknown, T) any -> unknown>`) reads as unbalanced and every
110 * parameter after it merges into one. */
111function topLevelParams(args: string): string[] {
112 const out: string[] = [];
113 let depth = 0;
114 let current = '';

Callers 1

buildPayloadFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected