// tracing: off
import { modify } from "./modify"
/**
 * Atomically sets the value associated with the current fiber and returns
 * the old value.
 */

export const getAndSet = (a) => modify((v) => [v, a])
//# sourceMappingURL=getAndSet.js.map
