Normalize a value that may be a plain Interval or an IntervalResult.
(x: Interval | IntervalResult)
| 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 }`. |