Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/premappable.ts>Premappable

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface Premappable
implements Mappable<U>, Hold<U>
import { type Premappable } from "https://deno.land/x/fun@v2.0.0/premappable.ts";

A Premappable structure has the method premap.

Properties

readonly
premap: <L, D>(fia: (l: L) => D) => <A, B, C, E>(ua: $<U, [A, B, C], [D], [E]>) => $<U, [A, B, C], [L], [E]>
readonly
dimap: <A, D, I, L>(fld: (l: L) => D, fai: (a: A) => I) => <B = never, C = never, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => $<U, [I, B, C], [L], [E]>