data class Some<T> : Option<T>
Some(value: T) |
val value: T |
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 |