// ets_tracing: off
import * as Tp from "../Collections/Immutable/Tuple";
import { getOrElse_ } from "../Option";
import { modify } from "./modify";
/**
 * Atomically modifies the `FiberRef` with the specified partial function.
 * If the function is undefined on the current value it doesn't change it.
 */

export function updateSome(f) {
  return modify(v => Tp.tuple(undefined, getOrElse_(f(v), () => v)));
}
//# sourceMappingURL=updateSome.js.map