getOrElse

inline fun <L, R> Either<L, R>.getOrElse(default: () -> R): R

Gets right value if this is Either.Right otherwise uses provided default.

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