Aller au contenu principal

toEither()

toEither<A, E>(fa): object

Converts a Result to an Either.


Type Parameters​

A: A​

The success type

E: E​

The error type


Parameters​

fa: Result<A, E>​

The Result to convert


Returns: object​

An Either

_tag: > *\_tag*: "Left" | "Right"​

left?: E​

right?: A​


Since​

2.0.0