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) 348 B
// ets_tracing: off import * as Tp from "../../Collections/Immutable/Tuple/index.mjs"; import { access } from "./api.mjs"; /** * Returns an effectful function that merely swaps the elements in a `Tuple`. */ export function swap(__trace) { return access(({ tuple: [a, b] }) => Tp.tuple(b, a), __trace); } //# sourceMappingURL=swap.mjs.map