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

Function flatBinary

scripts/rubi/wl-parser.ts:385–387  ·  view source on GitHub ↗
(op: 'Add' | 'Multiply', a: Json, b: Json)

Source from the content-addressed store, hash-verified

383}
384
385function flatBinary(op: 'Add' | 'Multiply', a: Json, b: Json): Json {
386 return flatBinaryOp(op, a, b);
387}
388
389function negate(x: Json): Json {
390 if (typeof x === 'number') return -x;

Callers 1

parseExpressionMethod · 0.85

Calls 1

flatBinaryOpFunction · 0.85

Tested by

no test coverage detected