find method
Searches for an element of an iterator that satisfies a predicate.
Implementation
@override
Option<T> find(bool Function(T) f) {
for (final element in this) {
if (f(element)) {
return Some(element);
}
}
return None;
}