Skip to main content

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