Skip to main content
Module

x/fun/bimappable.ts>bimap

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

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]>