filterMap<U extends Object> method

  1. @override
Iter<U> filterMap<U extends Object>(
  1. Option<U> f(
    1. T
    )
)

Creates an iterator that both filters and maps. The returned iterator yields only the values for which the supplied closure returns Some(value).

Implementation

@override
@pragma("vm:prefer-inline")
Iter<U> filterMap<U extends Object>(Option<U> Function(T) f) {
  return Iter.fromIterable(_filterMapHelper(f));
}