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

Function getInnermostBody

src/compute-engine/library/logic-analysis.ts:363–373  ·  view source on GitHub ↗
(body: Expression)

Source from the content-addressed store, hash-verified

361 // Unknown symbol - could be a finite set, but we can't determine
362 return {
363 status: 'non-enumerable',
364 variable,
365 domain,
366 reason: 'unknown-domain',
367 };
368 }
369
370 // A call whose value is a finite collection (`Sort(L)`, `Reverse(L)`,
371 // `Take(L, 2)`): its elements are the values. They are read from the
372 // evaluated collection as they are, so a computed list of two integers is
373 // not read as a range, as a written `[a, b]` is above. Only a pure call is
374 // evaluated: the caller can still give up on the values (a condition or a
375 // predicate that is not decided) and return the call as written, so the
376 // effects of an impure call would run once more at the next evaluation. The

Callers 2

evaluateForAllFunction · 0.90
evaluateExistsFunction · 0.90

Calls 1

isFunctionFunction · 0.90

Tested by

no test coverage detected