A find
that will return the first value for which f
returns Some(...)
.
A find
that will return the first value for which f
returns Some(...)
.
This is an optimization over find
: it does not compute the found value f(r)
twice.
Type of the return value r
under Option
.
Mapping function.
Some(r)
if f
returned a non-empty option value; None
otherwise.