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