data class Some<T> : Option<T>
(source)
Represents a present value in terms of Option.
Some(value: T)
Represents a present value in terms of Option. |
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 |