TEnumerable Class

Definition

Delphi
type TEnumerable = class(TObject)
Inheritance
TObject
TEnumerable

Methods

Aggregate<TSource,TAccumulate,TResult>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>, Func<TAccumulate,TResult>)

Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.

Aggregate<TSource,TAccumulate>(IEnumerable<TSource>, TAccumulate, Func<TAccumulate,TSource,TAccumulate>)

Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.

Chunk<T>(IEnumerable<T>, Integer)

Splits the elements of a sequence into chunks of size at most size .

CreateEmpty_Int16(Void, Pointer)
CreateEmpty_Int32(Void, Pointer)
CreateEmpty_Int64(Void, Pointer)
CreateEmpty_Int8(Void, Pointer)
CreateEmpty_Interface(Void, Pointer)
CreateEmpty_Method(Void, Pointer)
CreateEmpty_Object(Void, Pointer)
CreateEmpty_String(Void, Pointer)
DefaultIfEmpty<T>(IEnumerable<T>)

Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.

DefaultIfEmpty<T>(IEnumerable<T>, T)

Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.

Distinct<T>(IEnumerable<T>)

Returns distinct elements from a sequence by using the default equality comparer to compare values.

Distinct<T>(IEnumerable<T>, IEqualityComparer<T>)

Returns distinct elements from a sequence by using a specified equality comparer to compare values.

DistinctBy<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Returns distinct elements from a sequence according to a specified key selector function.

DistinctBy<T,TKey>(IEnumerable<T>, Func<T,TKey>, IEqualityComparer<TKey>)

Returns distinct elements from a sequence according to a specified key selector function and using a specified comparer to compare keys.

Empty<T>

Returns an empty sequence that has the specified type argument.

Except<T>(IEnumerable<T>, IEnumerable<T>)

Produces the set difference of two sequences by using the default equality comparer to compare values.

Except<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>)

Produces the set difference of two sequences by using the specified equality comparer to compare values.

From<T>(TArray<T>)

Returns a sequence that contains the specified values.

From<T>(array of T)

Returns a sequence that contains the specified values.

GroupBy<T,TKey,TElement,TResult>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>, Func<TKey,IEnumerable<TElement>,TResult>)

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.

GroupBy<T,TKey,TElement,TResult>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>, Func<TKey,IEnumerable<TElement>,TResult>, IEqualityComparer<TKey>)

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.

GroupBy<T,TKey,TElement>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>)

Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.

GroupBy<T,TKey,TElement>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.

GroupBy<T,TKey,TResult>(IEnumerable<T>, Func<T,TKey>, Func<TKey,IEnumerable<T>,TResult>)

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.

GroupBy<T,TKey,TResult>(IEnumerable<T>, Func<T,TKey>, Func<TKey,IEnumerable<T>,TResult>, IEqualityComparer<TKey>)

Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.

GroupBy<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Groups the elements of a sequence according to a specified key selector function.

GroupBy<T,TKey>(IEnumerable<T>, Func<T,TKey>, IEqualityComparer<TKey>)

Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

InternalFrom_Int16_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Int16_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Int32_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Int32_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Int64_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Int64_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Int8_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Int8_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Interface_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Interface_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Method_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Method_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_Object_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_Object_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalFrom_String_DynArray(Pointer, Void, PTypeInfo)
InternalFrom_String_OpenArray(Pointer, Integer, Void, PTypeInfo)
InternalOfType_Object(IEnumerable<TObject>, Void, PTypeInfo)
Intersect<T>(IEnumerable<T>, IEnumerable<T>)

Produces the set intersection of two sequences by using the default equality comparer to compare values.

Intersect<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>)

Produces the set intersection of two sequences by using the specified equality comparer to compare values.

MaxBy<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Returns the maximum value in a generic sequence according to a specified key selector function.

MaxBy<T,TKey>(IEnumerable<T>, Func<T,TKey>, IComparer<TKey>)

Returns the maximum value in a generic sequence according to a specified key selector function and key comparer.

MinBy<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Returns the minimum value in a generic sequence according to a specified key selector function.

MinBy<T,TKey>(IEnumerable<T>, Func<T,TKey>, IComparer<TKey>)

Returns the minimum value in a generic sequence according to a specified key selector function and key comparer.

OfType<T,TResult>(IEnumerable<T>)

Filters the elements of a sequence based on a specified type.

OrderBy<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Sorts the elements of a sequence in ascending order according to a key.

OrderBy<T,TKey>(IEnumerable<T>, Func<T,TKey>, IComparer<TKey>)

Sorts the elements of a sequence in ascending order by using a specified comparer.

OrderByDescending<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Sorts the elements of a sequence in descending order according to a key.

OrderByDescending<T,TKey>(IEnumerable<T>, Func<T,TKey>, IComparer<TKey>)

Sorts the elements of a sequence in descending order by using a specified comparer.

Range(Integer, Integer)

Generates a sequence of integral numbers within a specified range.

Repeated<T>(T, Integer)

Generates a sequence that contains one repeated value.

Select<T,TResult>(IEnumerable<T>, Func<T,Integer,TResult>)

Projects each element of a sequence into a new form.

Select<T,TResult>(IEnumerable<T>, Func<T,TResult>)

Projects each element of a sequence into a new form by incorporating the element's index.

SelectMany<T,TCollection,TResult>(IEnumerable<T>, Func<T,IEnumerable<TCollection>>, Func<T,TCollection,TResult>)

Projects each element of a sequence to an IEnumerable<T> , flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.

SelectMany<T,TCollection,TResult>(IEnumerable<T>, Func<T,Integer,IEnumerable<TCollection>>, Func<T,TCollection,TResult>)

Projects each element of a sequence to an IEnumerable<T> , flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.

SelectMany<T,TResult>(IEnumerable<T>, Func<T,IEnumerable<TResult>>)

Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence.

SelectMany<T,TResult>(IEnumerable<T>, Func<T,Integer,IEnumerable<TResult>>)

Projects each element of a sequence to an IEnumerable<T> , and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.

ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>)

Creates a dictionary from a sequence according to specified key selector and element selector functions.

ToDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

Creates a dictionary from a sequence according to specified key selector and element selector functions.

ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

Creates a dictionary from a sequence according to a specified key selector function.

ToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Creates a dictionary from a sequence according to a specified key selector function and key comparer.

ToLookup<T,TKey,TElement>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>)

Creates a lookup from a sequence according to specified key selector and element selector functions.

ToLookup<T,TKey,TElement>(IEnumerable<T>, Func<T,TKey>, Func<T,TElement>, IEqualityComparer<TKey>)

Creates a lookup from a sequence according to a specified key selector function, a comparer and an element selector function.

ToLookup<T,TKey>(IEnumerable<T>, Func<T,TKey>)

Creates a lookup from a sequence according to a specified key selector function.

ToLookup<T,TKey>(IEnumerable<T>, Func<T,TKey>, IEqualityComparer<TKey>)

Creates a lookup from a sequence according to a specified key selector function.

Union<T>(IEnumerable<T>, IEnumerable<T>)

Produces the set union of two sequences by using the default equality comparer.

Union<T>(IEnumerable<T>, IEnumerable<T>, IEqualityComparer<T>)

Produces the set union of two sequences by using a specified equality comparer.

Zip<TFirst,TSecond,TResult>(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.

Zip<TFirst,TSecond>(IEnumerable<TFirst>, IEnumerable<TSecond>)

Produces a sequence of tuples with elements from the two specified sequences.