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.

SkipWhile(Predicate<T>)

Bypasses elements in the sequence as long as a specified condition is true and then returns the remaining elements.

Delphi
function SkipWhile(const predicate: Predicate<T>): IEnumerable<T>

Parameters

predicate
Predicate<T>

A function to test each element for a condition.

Returns

IEnumerable<T>

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 .

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.

Delphi
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

IEnumerable<T>

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 .