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