apFirst()
apFirst<
E1,B>(fab): <E2,A>(fa) =>Either<E1|E2,A>
Sequences two Eithers, keeping the first value.
Type Parametersβ
E1: E1β
The error type of the second Either.
B: Bβ
The success type of the second Either.
Parametersβ
fab: Either<E1, B>β
The second Either.
Returns: <E2, A>(fa): Either<E1 | E2, A>β
A function that sequences the Eithers.
Sinceβ
2.0.0