EitherExtensions<L, R> extension

Useful extensions for working with Either.

on

Properties

isLeft → bool

Available on Either<L, R>, provided by the EitherExtensions extension

Returns true if this is a Left.
no setter
isRight → bool

Available on Either<L, R>, provided by the EitherExtensions extension

Returns true if this is a Right.
no setter
left → L?

Available on Either<L, R>, provided by the EitherExtensions extension

Returns the Left value if present, otherwise null.
no setter

Available on Either<L, R>, provided by the EitherExtensions extension

Returns the Right value if present, otherwise null.
no setter