mahler
Version:
A automated task composer and HTN based planner for building autonomous system agents
27 lines • 454 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ref = void 0;
/**
* Construct a reference from a given value
*
* Example:
*
* ```ts
* const ref = Ref.from(1);
* // The value of ref is now 2
* ref._++;
* ```
*/
function of(t) {
return {
_: t,
};
}
function is(x) {
return typeof x === 'object' && x != null && '_' in x;
}
exports.Ref = {
is,
of,
};
//# sourceMappingURL=ref.js.map