filter method

  1. @override
Iter<T> filter(
  1. bool f(
    1. T
    )
)

Creates an iterator which uses a closure to determine if an element should be yielded.

Implementation

@override
@pragma("vm:prefer-inline")
Iter<T> filter(bool Function(T) f) {
  return Iter.fromIterable(where((f)));
}