import { pair } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { bimap } = pair;
Creates a new pair by mapping first through the fai function and second through the fbj function.
Examples
Example 1
Example 1
import * as P from "./pair.ts";
import { pipe } from "./fn.ts";
const result = pipe(
P.pair(1, 2),
P.bimap(String, n => n + 1),
); // ['1', 3]