doc / ch.tutteli.atrium.core / Left

Left

data class Left<L> : Either<L, Nothing> (source)

The left case of an Either.

Constructors

<init>

Left(l: L)

The left case of an Either.

Properties

l

val l: L

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>