Last updated
Was this helpful?
Last updated
Was this helpful?
Returns true if the option IsSome
and the predicate
return true when applied it. Otherwise, returns false.
When the Option<T>
IsNone
the results will be always false
, Otherwise the predicate
function will be applied to the Option
and its returns will be the returned value.
When the option value IsSome and predicates returns true
When the option value IsSome and predicates returns false
When the option value IsNone
Parameters
Returns
Func<T, bool> predicate
Option<T> option
bool