A generic structure for a type with two possibilities: a Left a or
a Right b.
An Either is right-biased, so most operations will be applied to
the Right.
This is similar to Result type in core, but is more generic.
If your looking for a data type to do error handling, you should
use Result instead.
Apply a function to an Either. If the argument is Right, it
will be converted. If the argument is an Left, the same left value
will propogate through.
Apply a function to two eithers, if both arguments are Right.
If not, the first argument which is a Left will propagate through.
Also known as liftA2.
Like map2, but with 3 eithers. Also known as liftA3
Apply a function to the Left of an Either.
Alias for map.
Apply the first argument function to a Left and the second
argument function to a Right of an Either.
Apply a function to Right value. If argument was a Left use the
default value. Equivalent to Either.map >> Either.fromRight.
Create a singleton from a value to an Either with a Right
of the same type. Also known as pure.
Apply the function that is inside Either to a value that is inside
Either. Return the result inside Either. If one of the Either
arguments is Left x, return Left x. Also known as apply.
Chain together in many computations that will stop computing if
a chain is on a Left. Also known as bind.
Converts a List of Either a x to a List of a.
Converts a List of Either x b to a List of b.
Converts a List of Either a b, into a tuple2 where
the first value is a List a and the second is List b.
Maybe get the Right side of an Either.
Maybe get the Left side of an Either.
Alias for toMaybe.
Convert from a Maybe to Either with a default value
for Left for Nothing.
Convert from a Maybe to Either with a default value
for Right for Nothing.
Alias for fromMaybe.
Convert from Either to Result.
Convert from Result to Either.
Returns True if argument is Left _
Returns True if argument is Right _
Extract left value or a default.
Extract right value or a default.
Alias for fromRight
Given a function for both Left and Right to to type a generic
type c, collapse down the Either to a value of that type.
Alias for elim.
Swap the Left and Right sides of an Either.