Namespace: Assorted.Utils.Collections
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Inheritance: object→
EnumerableExtensions
Extends the enumerable objects.
public static class EnumerableExtensions
Method | Description |
---|---|
AddTo<TSource>(this IEnumerable<TSource>, ICollection<TSource>) | Adds elements of the sequence to a specific collection. |
Alternate<TSource>(this IEnumerable<TSource>, int) | Returns the alternative elements of the sequence by a specific interval. |
Apply<TSource>(this IEnumerable<TSource>, Action<TSource>) | Performs an action (lazy) on each element of the sequence. |
AsArray<TSource>(this IEnumerable<TSource>) | Executes the deferred operations of the sequence if there is any, and returns the evaluated sequence as an array. |
AsCollection<TSource>(this IEnumerable<TSource>) | Executes the deferred operations of the sequence if there is any, and returns the evaluated sequence as a read-only collection. |
AsList<TSource>(this IEnumerable<TSource>) | Executes the deferred operations of the sequence if there is any, and returns the evaluated sequence as a read-only list. |
AsSet<TSource>(this IEnumerable<TSource>) | Executes the deferred operations of the sequence if there is any, and returns the unique elements of the evaluated sequence as a set. |
Cycle<TSource>(this IEnumerable<TSource>, int) | Repeats the sequence by a specific number of times. |
DamerauLevenshteinDistance<TSource>(this IEnumerable<TSource>, IEnumerable<TSource>) | Returns the Damerau-Levenshtein distance of this sequence to a specified sequence. |
ForEach<TSource>(this IEnumerable<TSource>, Action<TSource>) | Performs an action on each element of the sequence. |
Partition<TSource>(this IEnumerable<TSource>, int) | Splits the sequence into a fixed-size chunks. |
RemoveFrom<TSource>(this IEnumerable<TSource>, ICollection<TSource>) | Removes elements of the sequence from a specific collection. |
RotateLeft<TSource>(this IEnumerable<TSource>, int) | Rotates the sequence by a specific number of elements to left. |
RotateRight<TSource>(this IEnumerable<TSource>, int) | Rotates the sequence by a specific number of elements to right. |
Shuffle<TSource>(this IEnumerable<TSource>) | Shuffles elements of the sequence. |
Any public static member of this type is thread-safe, but instance members are not guaranteed to be thread-safe.
This document is generated by DG.