Creates a new Option from t, but only it will be Some when predicate(t) returns true.
Option
t
Some
predicate(t)
true
The function to decide the value should be contained.
The new optional.
Generated using TypeDoc
Creates a new
Option
fromt
, but only it will beSome
whenpredicate(t)
returnstrue
.