Transforms the value inside an Either using the provided function. If the Either is Left(value), returns Left(f(value)). If the Either is Right(value), returns Right(value).
Either
Left(value)
Left(f(value))
Right(value)
Transforms the value inside an
Either
using the provided function. If theEither
isLeft(value)
, returnsLeft(f(value))
. If theEither
isRight(value)
, returnsRight(value)
.