whereNotIndexed method

Iterable<E> whereNotIndexed(
  1. bool predicate(
    1. E element,
    2. int index
    )
)

Returns all elements not matching the given predicate.

Implementation

Iterable<E> whereNotIndexed(
  bool Function(E element, int index) predicate,
) sync* {
  var index = 0;
  for (final element in this) {
    if (!predicate(element, index++)) {
      yield element;
    }
  }
}