filterMap<U> method

Iter<U> filterMap<U>(
  1. 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 a non-null value.

Implementation

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