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