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

Function assignValueAsValue

src/compute-engine/engine-declarations.ts:348–368  ·  view source on GitHub ↗
(
  ce: IComputeEngine,
  value: AssignValue
)

Source from the content-addressed store, hash-verified

346 * tier can bridge. Keys are lowercase. A curated suggestion is returned only
347 * when its target operator is actually visible in the current scope chain.
348 */
349const CURATED_SYNONYMS: Record<string, string> = {
350 split: 'StringSplit',
351 push: 'Append',
352 ceiling: 'Ceil',
353 // JavaScript Array method names.
354 some: 'Any',
355 every: 'All',
356 // Wolfram Language names. These are SUGGESTIONS, not aliases: the operator
357 // they point at is the right neighborhood, but the call shape often differs
358 // (`Accumulate[xs]` vs `Scan(xs, Add)`). The namespace stays Epsil-native.
359 total: 'Sum',
360 select: 'Filter',
361 cases: 'Filter',
362 memberq: 'Contains',
363 accumulate: 'Scan',
364 randomreal: 'Random',
365 randominteger: 'Random',
366 nest: 'Iterate',
367 nestlist: 'Iterate',
368};
369
370export function suggestOperatorName(
371 ce: IComputeEngine,

Callers 1

assignFnFunction · 0.85

Calls 2

numberMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected