object None : Option<Nothing>
Represents an absent value in terms of Option.
fun filter(predicate: (T) -> Boolean): Option<T> |
|
fun <R> flatMap(f: (T) -> Option<R>): Option<R> |
|
fun <R> fold(default: () -> R, f: (T) -> R): R |
|
fun isDefined(): Boolean |
|
fun <R> map(f: (T) -> R): Option<R> |
fun <T> Option<T>.getOrElse(default: () -> T): T |