UNPKG

awv3

Version:
30 lines (24 loc) 658 B
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; var _class, _temp; import Expr from './expr'; var Vector = (_temp = _class = /*#__PURE__*/ function (_Expr) { _inheritsLoose(Vector, _Expr); function Vector() { return _Expr.apply(this, arguments) || this; } var _proto = Vector.prototype; _proto.unparse = function unparse() { return '{' + this.elts.map(function (elt) { return elt.unparse(); }).join(', ') + '}'; }; return Vector; }(Expr), Object.defineProperty(_class, "_fields", { configurable: true, enumerable: true, writable: true, value: ['elts'] }), _temp); export { Vector as default };