Skip to main content
Module

x/functional/mod.ts>EitherLeftPrototype

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

Methods

alt<T extends EitherRightPrototype<K>, K, Y>(container: Y): T
ap<T extends EitherRightPrototype<K>, K>(container: T): this
chain<T extends EitherRightPrototype<Y>, K, Y>(unaryFunction: (value: K) => T): this
extend<T extends EitherRightPrototype<Y>, K, Y>(unaryFunction: (container: T) => K): this
map<K, Y>(unaryFunction: (value: Y) => K): this
of<T extends EitherLeftPrototype<Z>>(value: Z): T
toString(): string
zero(): Either.Left