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.
public function TakeWhile(const predicate: TFunc<T, Integer, Boolean>): IEnumerable<T>; overload;
Parameters
- predicate
- Type: TFunc<T, Integer, Boolean>