Right

data class Right<R>(val value: R) : Either<Nothing, R>

Constructors

Link copied to clipboard
constructor(value: R)

Properties

Link copied to clipboard
val value: R

Functions

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

Right-biased map.

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