filter

inline fun filter(predicate: (T) -> Boolean): Option<T>(source)

Filters the value if defined by the given predicate.