object None : Option<Nothing>
| value |
val value: Nothing |
| absent |
val absent: Boolean |
| present |
val present: Boolean |
| ifAbsent |
fun ifAbsent(right: () -> Unit): Option<T> |
| not |
operator fun not(): Boolean |
| toLeft |
fun <U : Any> toLeft(right: U): Either<T, U> |
| toRight |
fun <U : Any> toRight(left: U): Either<U, T> |
| toTry |
fun toTry(exception: () -> Exception = { NullPointerException() }): Try<T> |