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