"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.modify_ = exports.modify = void 0;
const primitives_1 = require("../Effect/primitives");
/**
 * Atomically modifies the `FiberRef` with the specified function, which computes
 * a return value for the modification. This is a more powerful version of
 * `update`.
 *
 * @ets_data_first modify_
 */
function modify(f) {
    return (fiberRef) => new primitives_1.IFiberRefModify(fiberRef, f);
}
exports.modify = modify;
/**
 * Atomically modifies the `FiberRef` with the specified function, which computes
 * a return value for the modification. This is a more powerful version of
 * `update`.
 */
function modify_(fiberRef, f) {
    return new primitives_1.IFiberRefModify(fiberRef, f);
}
exports.modify_ = modify_;
//# sourceMappingURL=modify.js.map