container.js 442 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Container = void 0;
  4. class Container {
  5. constructor(x) {
  6. this.$value = x;
  7. }
  8. static of(x) {
  9. return new Container(x);
  10. }
  11. call(f, ...rest) {
  12. return (this.$value = f(this.$value, ...rest)), this;
  13. }
  14. value() {
  15. return this.$value;
  16. }
  17. }
  18. exports.Container = Container;
  19. //# sourceMappingURL=container.js.map