// ets_tracing: off
import * as Tp from "../Collections/Immutable/Tuple";
import { access } from "./core";
/**
 * 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.js.map