EitherExtensions<L, R> extension
Useful extensions for working with Either.
- on
-
- Either<
L, R>
- Either<
Properties
- isLeft → bool
-
Available on Either<
ReturnsL, R> , provided by the EitherExtensions extensiontrueif this is a Left.no setter - isRight → bool
-
Available on Either<
ReturnsL, R> , provided by the EitherExtensions extensiontrueif this is a Right.no setter - left → L?
-
Available on Either<
Returns the Left value if present, otherwiseL, R> , provided by the EitherExtensions extensionnull.no setter - right → R?
-
Available on Either<
Returns the Right value if present, otherwiseL, R> , provided by the EitherExtensions extensionnull.no setter