mapLeft()
mapLeft<
E,G>(f): <A>(fa) =>Either<G,A>
Maps a function over the Left value of an Either.
Type Parameters
E: E
The original error type.
G: G
The new error type.
Parameters
f: (e) => G
The mapping function.
Returns: <A>(fa): Either<G, A>
A function that transforms the Either.
Since
2.0.0