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