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

Function isValueDef

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

Source from the content-addressed store, hash-verified

403 if (resolved.every((op, i) => op === ops[i])) return expr;
404 return expr.engine.function(expr.operator, resolved);
405}
406
407/**
408 * Replace `At(List(e₁, …, eₙ), k)` by `e_k` — a purely *structural*
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`,

Callers 15

forgetFunction · 0.90
assumeEqualityFunction · 0.90
assumeInequalityFunction · 0.90
refineSymbolTypeFunction · 0.90
refineTypeIfUnknownFunction · 0.90
hasValueFunction · 0.90
symbolInfoMethod · 0.90
parseMethod · 0.90
appliedNonFunctionsMethod · 0.90
declareSequenceFunction · 0.90
getSequenceStatusFunction · 0.90
defToStringFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected