Module

x/functional/mod.ts>EitherRightPrototype

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

Methods

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