UNPKG

442 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Container = void 0;
4class 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}
18exports.Container = Container;
19//# sourceMappingURL=container.js.map
\No newline at end of file