UNPKG

nerdamer-ts

Version:

javascript light-weight symbolic math expression evaluator

18 lines 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Slice = void 0; const Text_1 = require("../Core/Text"); class Slice { constructor(upper, lower) { this.start = upper; this.end = lower; } isConstant() { return this.start.isConstant() && this.end.isConstant(); } text() { return (0, Text_1.text)(this.start) + ':' + (0, Text_1.text)(this.end); } } exports.Slice = Slice; //# sourceMappingURL=Slice.js.map