import * as fun from "https://deno.land/x/fun@v2.0.0/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
Compose two Applicables into a new apply function. | |
Interfaces
The Applicable interface. This interface includes the methods apply, map, and wrap. |