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

Function toResult

src/compute-engine/interval/comparison.ts:11–14  ·  view source on GitHub ↗

Normalize a value that may be a plain Interval or an IntervalResult.

(x: Interval | IntervalResult)

Source from the content-addressed store, hash-verified

9
10/**
11 * Normalize a value that may be a plain Interval or an IntervalResult.
12 *
13 * Exported because the compiled, closure-free lowering of a conditional calls
14 * it on the arm a decided condition selected: `piecewise` normalizes its
15 * answer, so the ternary chain that replaced it has to normalize the same way
16 * or a conditional would answer a bare `{ lo, hi }` where it used to answer an
17 * `{ kind: 'interval', value }`.

Callers 1

piecewiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected