where method

Option<T> where(
  1. bool f(
    1. T t
    )
)

Implementation

Option<T> where(bool Function(T t) f) => fold(() => Option.none(),
    (some) => f(some) ? Option.some(some) : Option.none());