Skip to main content
Module

x/fun/mod.ts>bimappable.bimap

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function bimappable.bimap
import { bimappable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { bimap } = bimappable;

Type Parameters

U extends Kind

Returns

<A, B, I, J>(fai: (a: A) => I, fbj: (b: B) => J) => <C = never, D = unknown, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => $<U, [I, J, C], [D], [E]>