Either
Monadics

Prev:Maybe
Next:sequence


Vocabulary
monadics

Word description
An Either value holds either a "correct" Right value or a Left value, usually signifying an error of some kind. Any action over a Left value preserves the Left value instead.
USING: math monadics prettyprint ; [ + ] 5 right <$> "Bad Input" left <*> .
T{ Left { value "Bad Input" } }


See also
?either, validate

Definition


Methods