Left

data class Left<E, A>(val value: E) : Either<E, A>

Constructors

Link copied to clipboard
constructor(value: E)

Properties

Link copied to clipboard
val value: E

Functions

Link copied to clipboard
fun <B> flatMap(f: (A) -> Either<E, B>): Either<E, B>
Link copied to clipboard
fun <C> fold(ifLeft: (E) -> C, ifRight: (A) -> C): C
Link copied to clipboard
fun getOrNull(): A?
Link copied to clipboard
fun <B> map(f: (A) -> B): Either<E, B>
Link copied to clipboard
suspend fun <C> suspendFold(ifLeft: suspend (E) -> C, ifRight: suspend (A) -> C): C