Skip to main content
Module

x/fun/bifunctor.ts>Bifunctor

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
interface Bifunctor
implements TypeClass<U>
import { type Bifunctor } from "https://deno.land/x/fun@v2.0.0-alpha.6/bifunctor.ts";

Properties

readonly
bimap: <A, B, I, J>(fbj: (b: B) => J, fai: (a: A) => I) => <C, D, E>(tab: $<U, [A, B, C], [D], [E]>) => $<U, [I, J, C], [D], [E]>
readonly
mapLeft: <B, J>(fbj: (b: B) => J) => <A, C, D, E>(tea: $<U, [A, B, C], [D], [E]>) => $<U, [A, J, C], [D], [E]>