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

Function isOperatorDef

src/compute-engine/boxed-expression/utils.ts:411–415  ·  view source on GitHub ↗
(
  def: BoxedDefinition | undefined
)

Source from the content-addressed store, hash-verified

409 * projection, applied recursively.
410 *
411 * The point is to avoid `.evaluate()`. Evaluating an `At` evaluates the picked
412 * element too, which substitutes assigned symbol values: with `Y := 5`,
413 * `At([Y, 2], 1).evaluate()` is `5`. Inside a held `Solve` equation that would
414 * replace the very unknown being solved for. Projection just hands back the
415 * operand.
416 *
417 * Without this, indexing into a computed list hid the unknown from the solver
418 * exactly as a value-bound symbol did — `Solve(At([Y, 2], 1) = 5, Y)` returned

Callers 15

refineSymbolTypeFunction · 0.90
operatorInfoMethod · 0.90
parseMethod · 0.90
appliedNonFunctionsMethod · 0.90
defToStringFunction · 0.90
declareFnFunction · 0.90
assignFnFunction · 0.90
compileExprMethod · 0.90
operatorDefinitionMethod · 0.90
inferMethod · 0.90
_valueMethod · 0.90
valueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected