// ets_tracing: off
import { modify } from "./modify";
/**
 * Atomically modifies the `FiberRef` with the specified function and returns
 * the result.
 */

export function updateAndGet(f) {
  return modify(v => {
    const result = f(v);
    return [result, result];
  });
}
//# sourceMappingURL=updateAndGet.js.map