import * as tracing_1 from "../../Tracing"
const fileName_1 = "(@effect-ts/system): _src/Managed/methods/swap.ts"
import * as Tp from "../../Collections/Immutable/Tuple"
import { access } from "./api"
/**
 * 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.js.map
