// tracing: off
import { modify } from "./modify"
/**
 * Atomically modifies the `FiberRef` with the specified function and returns
 * the old value.
 */

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