Returns an optional describing the first element that matches the given predicate, or an empty optional if not found.
This operation respects encounter order even though the seq is in parallel mode.
This is a short-circuiting terminal operation.
pred |
a non-interfering and stateless predicate |
a future of an optional describing the first element that matches the given, or an empty optional if not found. |