TEnumerableBase<T>.TakeWhile(TFunc) Method

Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.

Namespace: Spring.Collections.Base
public
 function TakeWhile(const predicate: TFunc<T, Integer, Boolean>): IEnumerable<T>; overload;

Parameters

predicate
Type: TFunc<T, Integer, Boolean>

Return Value

Type: IEnumerable<T>

 

Implements

IEnumerable<T>.TakeWhile(TFunc)