effect-io-ai

Package: effect
Module: Either

Either.map

Maps the Right side of an Either value to a new Either value.

Signature

declare const map: { <A, A2>(f: (right: A) => A2): <E>(self: Either<A, E>) => Either<A2, E>; <A, E, A2>(self: Either<A, E>, f: (right: A) => A2): Either<A2, E>; }

Source

Since v2.0.0