effect-io-ai

Package: effect
Module: Micro

Micro.fromEither

Converts an Either into a Micro effect, that will fail with the left side of the either if it is a Left. Otherwise, it will succeed with the right side of the either.

Signature

declare const fromEither: <R, L>(either: Either.Either<R, L>) => Micro<R, L>

Source

Since v3.4.0