Skip to main content

ap()

ap<E1, A>(fa): <E2, B>(fab) => Either<E1 | E2, B>

Applies a function inside an Either to a value inside another Either.


Type Parameters​

E1: E1​

The error type of the value Either.

A: A​

The input type.


Parameters​

fa: Either<E1, A>​

The value Either.


Returns: <E2, B>(fab): Either<E1 | E2, B>​

A function that applies the function Either.


Since​

2.0.0