Left

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

Constructors

Link copied to clipboard
constructor(value: L)

Properties

Link copied to clipboard
val value: L

Functions

Link copied to clipboard
fun <T> map(transform: (Nothing) -> T): Either<L, T>

Right-biased map.

Link copied to clipboard
fun onFailure(fn: (failure: L) -> Unit): Either<L, Nothing>
Link copied to clipboard
fun onSuccess(fn: (success: Nothing) -> Unit): Either<L, Nothing>