IEnumerable<T>.SkipWhile Method
Overloads
| SkipWhile(Predicate<T>) |
Bypasses elements in the sequence as long as a specified condition is true and then returns the remaining elements. |
| SkipWhile(Func<T,Integer,Boolean>) |
Bypasses elements in the sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. |
Bypasses elements in the sequence as long as a specified condition is true and then returns the remaining elements.
function SkipWhile(const predicate: Predicate<T>): IEnumerable<T>
Parameters
- predicate
- Predicate<T>
A function to test each element for a condition.
Returns
A sequence that contains the elements from the input sequence
starting at the first element in the linear series that does not pass
the test specified by predicate .
Exceptions
predicate is nil .
Bypasses elements in the sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
function SkipWhile(const predicate: Func<T, Integer, Boolean>): IEnumerable<T>
Parameters
- predicate
- Func<T, Integer, Boolean>
A function to test each source element for a condition; the second parameter of the function represents the index of the source element.
Returns
A sequence that contains the elements from the input sequence
starting at the first element in the linear series that does not pass
the test specified by predicate .
Exceptions
predicate is nil .