toEither<A, E>(fa): object
Converts a Result to an Either.
Type Parameters
A: A
The success type
E: E
The error type
Parameters
The Result to convert
Returns: object
An Either
_tag: > *\_tag*: "Left" | "Right"
left?: E
right?: A
Since
2.0.0