swap
import { swap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/either.ts";Swap the Left and Right values of an Either.
@example
import * as E from "./either.ts";
const result1 = E.swap(E.right(42));
// Left(42)
const result2 = E.swap(E.left("error"));
// Right("error")