Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/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>.

§Functions

apply

Compose two Applicables into a new apply function.

applyFirst
applySecond
getApplicableCombinable

§Interfaces

Applicable

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