UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

13 lines (12 loc) 347 B
// ets_tracing: off import * as Tp from "../Collections/Immutable/Tuple/index.mjs"; import { access } from "./core.mjs"; /** * Returns an effectful function that merely swaps the elements in a `Tuple2`. */ export function swap(__trace) { return access(({ tuple: [a, b] }) => Tp.tuple(b, a), __trace); } //# sourceMappingURL=swap.mjs.map