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