filter abstract method

Option<T> filter(
  1. @noFuturesAllowed bool noFuturesAllowed(
    1. T value
    )
)

Returns None if the predicate noFuturesAllowed returns false. Otherwise, returns the original Option.

Implementation

Option<T> filter(@noFuturesAllowed bool Function(T value) noFuturesAllowed);