Module

x/functional/mod.ts>MaybePrototype

Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno.
Latest
interface MaybePrototype
import { type MaybePrototype } from "https://deno.land/x/functional@v1.3.4/mod.ts";

Methods

alt<T extends MaybePrototype<Z>>(container: T): this
ap<T extends MaybePrototype<K>, K>(container: T): this
chain<T extends MaybePrototype<K>, K>(unaryFunction: (value: Z) => T): this
extend<T extends MaybePrototype<Z>, K>(unaryFunction: (container: T) => K): this
extract(): Z
map<K>(unaryFunction: (value: Z) => K): this
of<T extends MaybePrototype<Z>>(value: Z): this
toString(): string
zero(): Maybe.Nothing