whereNot method

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

Returns all elements not matching the given predicate.

Implementation

Iterable<E> whereNot(bool Function(E element) predicate) sync* {
  for (var element in this) {
    if (!predicate(element)) {
      yield element;
    }
  }
}