data class Right<R> : Either<Nothing, R>
(source)
The right case of an Either.
Right(r: R)
The right case of an Either. |
val r: R |
fun <T> fold(fL: (L) -> T, fR: (R) -> T): T |
|
fun <T> map(f: (R) -> T): Either<L, T> |
|
fun toOption(): Option<R> |
fun <L, R, T> Either<L, R>.flatMap(f: (R) -> Either<L, T>): Either<L, T> |