import { map } from "https://deno.land/x/fun@v2.0.0-alpha.6/fn_either.ts";
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)