filter method

Iterable<E> filter(
  1. bool predicate(
    1. E element
    )
)

Returns all elements matching the given predicate.

Implementation

Iterable<E> filter(bool Function(E element) predicate) => where(predicate);