import { fn_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { map } = fn_either;
Map over the right return value of a FnEither.
Examples
Example 1
Example 1
import * as FE from "./fn_either.ts";
import { pipe } from "./fn.ts";
const result = pipe(
FE.id<number>(),
FE.map(n => n + 1),
)(0); // Right(1)