"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.getAndSet = void 0
// tracing: off
const modify_1 = require("./modify")
/**
 * Atomically sets the value associated with the current fiber and returns
 * the old value.
 */
const getAndSet = (a) => (0, modify_1.modify)((v) => [v, a])
exports.getAndSet = getAndSet
//# sourceMappingURL=getAndSet.js.map
