findMap<U extends Object> method
Applies the function to the elements of iterator and returns the first non-none result.
Implementation
@override
@pragma("vm:prefer-inline")
Option<U> findMap<U extends Object>(Option<U> Function(T) f) {
for (final element in this) {
final result = f(element);
if (result.isSome()) {
return result;
}
}
return None;
}