effect-io-ai

Package: effect
Module: Either

Either.flip

Returns an Either that swaps the error/success cases. This allows you to use all methods on the error channel, possibly before flipping back.

Signature

declare const flip: <A, E>(self: Either<A, E>) => Either<E, A>

Source

Since v2.0.0