Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>mappable.Mappable

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

A Mappable structure has the method map.

Type Parameters

U extends Kind

Properties

readonly
map: <A, I>(fai: (value: A) => I) => <B = never, C = never, D = unknown, E = unknown>(ta: $<U, [A, B, C], [D], [E]>) => $<U, [I, B, C], [D], [E]>