left
import { left } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/either.ts";Construct a Left value from an error or failure value.
@example
import * as E from "./either.ts";
const result1 = E.left("Network error");
// { tag: "Left", left: "Network error" }
const result2 = E.left(new Error("Something failed"));
// { tag: "Left", left: Error("Something failed") }