Right

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

Constructors

Link copied to clipboard
constructor(value: A)

Properties

Link copied to clipboard
val value: A

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>