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

x/fun/applicable.ts

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

Applicable is a structure that allows a function to be applied inside of the associated concrete structure. For example, Option may hold a value of (a: A) => B inside of it. An Applicable for Option would allow one to apply the A in an Option<A> to the function (a: A) => B in an Option<(a: A) => B>, resulting in an Option<B>.

Interfaces

The Applicable interface. This interface includes the methods apply, map, and wrap.