getLeft
import { getLeft } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/either.ts";Extract the Left value as an Option. Returns Some(error) for Left values and None for Right values.
@example
import * as E from "./either.ts";
import * as O from "./option.ts";
const result1 = E.getLeft(E.left("error"));
// Some("error")
const result2 = E.getLeft(E.right(42));
// None