EitherExtensions<L, R> extension
Extension methods for working with Either
- on
-
- Either<
L, R>
- Either<
Methods
-
filter(
bool predicate(R), L orElse()) → Either< L, R> -
Available on Either<
Filters the right value with a predicate, converting to Left if falseL, R> , provided by the EitherExtensions extension -
toList(
) → List< R> -
Available on Either<
Converts this Either to a list, containing the right value or empty for LeftL, R> , provided by the EitherExtensions extension -
toNullable(
) → R? -
Available on Either<
Converts this Either to a nullable value, returning null for LeftL, R> , provided by the EitherExtensions extension