Skip to main content
Module

x/fun/mod.ts>bifunctor.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.Bifunctor
implements TypeClass<U>
import { type bifunctor } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { Bifunctor } = bifunctor;

Type Parameters

U extends Kind

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