IEnumerable<T>.TakeWhile(TPredicate<T>) Method

Returns elements from a sequence as long as a specified condition is true.

Namespace: Spring.Collections
public
 function TakeWhile(const predicate: TPredicate<T>): IEnumerable<T>; overload;

Parameters

predicate
Type: TPredicate<T>

Return Value

Type: IEnumerable<T>