ICollection<T>.ExtractAll Method

Definition

Removes all the elements that match the conditions defined by the specified predicate without triggering lifetime management for objects.

Delphi
function ExtractAll(const predicate: Predicate<T>): TArray<T>

Parameters

predicate
Predicate<T>

The predicate that defines the conditions of the elements to remove.

Returns

TArray<T>

The elements that were removed from the collection.

Exceptions

predicate is nil .