• Transforms the value inside an Either using the provided function. If the Either is Right(value), returns Right(f(value)). If the Either is Left(value), returns Left(value).

    Type Parameters

    • A
    • B

    Parameters

    • f: (right: A) => B

      The function to apply to the Right value

    Returns <E>(either: Either<E, A>) => Either<E, B>

    A function that transforms Either<E, A> to Either<E, B>