Benefits of the iterator/map/find/flatten approach: 1. It stops processing as soon as it finds a match (efficient). 2. If it finds a match, it returns that match, wrapped in another Some. 3. If it doesn't find any match, it returns None.
Using iterators, map, find, and flatten allows for efficiently finding the first element in a sequence without processing the rest, returning it if found or None.
Collection
[
|
...
]