None

Represents an absent value in terms of Option.

Functions

Link copied to clipboard
inline fun filter(predicate: (Nothing) -> Boolean): Option<Nothing>

Filters the value if defined by the given predicate.

Link copied to clipboard
inline fun <R> flatMap(f: (Nothing) -> Option<R>): Option<R>

Flat-maps over the value if defined.

Link copied to clipboard
inline fun <R> fold(default: () -> R, f: (Nothing) -> R): R

Folds this Option.

Link copied to clipboard
inline fun <T> Option<T>.getOrElse(default: () -> T): T

Get the value of this Option if defined or use the default-value provider.

Link copied to clipboard
Link copied to clipboard
inline fun <R> map(f: (Nothing) -> R): Option<R>

Maps over the value if defined.