requireRight

inline fun <L, R> Either<L, R>.requireRight(block: (Left<L>) -> Nothing): R

Try to get Either.right or calls block to return or stops the current execution block.

Return

Either.right value.