skipWhileE method

Enumerable<T> skipWhileE (Condition<T> condition)

Skips all the elements at the beginning of the enumerable that match the condition.

During iteration, each element is given to the condition function. If the condition returns true, that element is skipped. Once an element is processed where the condition returns false, that element is added to the resulting enumerable. After that, the condition is no longer checked and the iteration continues as normal.

If all elements in the enumerable match the given condition, the result is an empty enumerable.

Implementation

Enumerable<T> skipWhileE(Condition<T> condition) {
  assert(condition != null);

  return SkipWhileEnumerable<T>(this, condition);
}