Either.Either.right
Construct an Either holding the right alternative.
Parameters
value | value of exactly type R; implicit conversions are rejected so the alternatives can never be confused. |
Returns
the constructed
Returns the right payload by reference.
Calling right() while the left alternative is active is a programming error and terminates the process (see the module documentation).
Returns
a reference to the stored
R, retaining transitive qualifiers.