IEnumerable<T>.TakeWhile(TPredicate<T>) Method
Returns elements from a sequence as long as a specified condition is true.
public function TakeWhile(const predicate: TPredicate<T>): IEnumerable<T>; overload;
Parameters
- predicate
- Type: TPredicate<T>
Returns elements from a sequence as long as a specified condition is true.
public function TakeWhile(const predicate: TPredicate<T>): IEnumerable<T>; overload;