@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
10 lines (9 loc) • 322 B
JavaScript
// ets_tracing: off
import * as Tp from "../Collections/Immutable/Tuple/index.mjs";
import { modify } from "./modify.mjs";
/**
* Atomically sets the value associated with the current fiber and returns
* the old value.
*/
export const getAndSet = a => modify(v => Tp.tuple(v, a));
//# sourceMappingURL=getAndSet.mjs.map