orNull

fun <L, R> Either<L, R>.orNull(): R?

Gets the right value if this is Either.Right, otherwise null.

Important: This is a Public Preview API. It may be changed or removed at any time.