doc / ch.tutteli.atrium.core / Right

Right

data class Right<R> : Either<Nothing, R>

The right case of an Either.

Constructors

<init>

Right(r: R)

The right case of an Either.

Properties

r

val r: R

Inherited Functions

fold

fun <T> fold(fL: (L) -> T, fR: (R) -> T): T

map

fun <T> map(f: (R) -> T): Either<L, T>

toOption

fun toOption(): Option<R>

Extension Functions

flatMap

fun <L, R, T> Either<L, R>.flatMap(f: (R) -> Either<L, T>): Either<L, T>