-
Notifications
You must be signed in to change notification settings - Fork 36
Methods_T_CodeJam_Collections_EnumerableExtensions
andrewvk edited this page Mar 30, 2016
·
13 revisions
[This is preliminary documentation and is subject to change.]
The EnumerableExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
AsArray(T) | Casts the specified sequence to array if possible, or creates an array from. |
![]() ![]() |
AsList(T) | Casts the specified sequence to List(T) if possible, or creates a List(T) from. |
![]() ![]() |
Concat(T)(IEnumerable(T), T) | Appends specified element to end of the collection. |
![]() ![]() |
Concat(T)(IEnumerable(T), T[]) | Appends specified elements to end of the collection. |
![]() ![]() |
DistinctBy(TSource, TKey)(IEnumerable(TSource), Func(TSource, TKey)) | Returns a sequence with distinct elements from the input sequence based on the specified key. |
![]() ![]() |
DistinctBy(TSource, TKey)(IEnumerable(TSource), Func(TSource, TKey), IEqualityComparer(TKey)) | Returns a sequence with distinct elements from the input sequence based on the specified key and key comparer. |
![]() ![]() |
ExceptBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey)) | Produces the set difference of two sequences by using the specified key to compare values. |
![]() ![]() |
ExceptBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey), IEqualityComparer(TKey)) | Produces the set difference of two sequences by using the specified key and IEqualityComparer(T) to compare values. |
![]() ![]() |
FirstOrDefault(T)(IEnumerable(T), T) | Returns first element, or specified defaultValue, if sequence is empty. |
![]() ![]() |
FirstOrDefault(T)(IEnumerable(T), T, Func(T, Boolean)) | Returns first element, or specified defaultValue, if sequence is empty. |
![]() ![]() |
Flatten(T) | Returns a flattened sequence from a graph or hierarchy of elements by using the specified children selector. |
![]() ![]() |
IntersectBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey)) | Produces the set intersection of two sequences by using the specified key to compare values. |
![]() ![]() |
IntersectBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey), IEqualityComparer(TKey)) | Produces the set intersection of two sequences by using the specified key and IEqualityComparer(T) to compare values. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Byte)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Decimal)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Double)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Int16)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Int32)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Int64)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Byte))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Decimal))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Double))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int16))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int32))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int64))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(SByte))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Single))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt16))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt32))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt64))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, SByte)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, Single)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, UInt16)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, UInt32)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource)(IEnumerable(TSource), Func(TSource, UInt64)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MaxItem(TSource, TValue)(IEnumerable(TSource), Func(TSource, TValue)) | Invokes a selector on each element of a source and returns the item with maximum value. |
![]() ![]() |
MaxItem(TSource, TValue)(IEnumerable(TSource), Func(TSource, TValue), IComparer(TValue)) | Invokes a selector on each element of a source and returns the item with maximum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Byte)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Decimal)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Double)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Int16)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Int32)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Int64)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Byte))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Decimal))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Double))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int16))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int32))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Int64))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(SByte))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(Single))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt16))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt32))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Nullable(UInt64))) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, SByte)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, Single)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, UInt16)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, UInt32)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource)(IEnumerable(TSource), Func(TSource, UInt64)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource, TValue)(IEnumerable(TSource), Func(TSource, TValue)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
MinItem(TSource, TValue)(IEnumerable(TSource), Func(TSource, TValue), IComparer(TValue)) | Invokes a selector on each element of a source and returns the item with minimum value. |
![]() ![]() |
OrderBy(TSource) | Sorts the elements of a sequence in ascending order. |
![]() ![]() |
OrderByDescending(TSource) | Sorts the elements of a sequence in descending order. |
![]() ![]() |
Prepend(T)(IEnumerable(T), T) | Prepends specified element to the collection start. |
![]() ![]() |
Prepend(T)(IEnumerable(T), T[]) | Prepends specified elements to the collection start. |
![]() ![]() |
Split(T) | Splits the input sequence into a sequence of chunks of the specified size. |
![]() ![]() |
TakeLast(TSource) | Returns a specified number of contiguous elements from the end of a sequence. |
![]() ![]() |
ToHashSet(T)(IEnumerable(T)) | Creates a HashSet(T) from an IEnumerable(T). |
![]() ![]() |
ToHashSet(T)(IEnumerable(T), IEqualityComparer(T)) | Creates a HashSet(T) from an IEnumerable(T) with the specified equality comparer. |
![]() ![]() |
TopoSort(T)(IEnumerable(T), Func(T, IEnumerable(T))) | Performs topological sort on source. |
![]() ![]() |
TopoSort(T)(IEnumerable(T), Func(T, IEnumerable(T)), IEqualityComparer(T)) | Performs topological sort on source. |
![]() ![]() |
TopoSort(T, TKey)(IEnumerable(T), Func(T, IEnumerable(T)), Func(T, TKey)) | Performs topological sort on source. |
![]() ![]() |
TopoSort(T, TKey)(IEnumerable(T), Func(T, IEnumerable(T)), Func(T, TKey), IEqualityComparer(TKey)) | Performs topological sort on source. |
![]() ![]() |
ToStrings(T) | Returns string representations of source items. |
![]() ![]() |
UnionBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey)) | Produces the set union of two sequences by using the specified key to compare values. |
![]() ![]() |
UnionBy(TSource, TKey)(IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey), IEqualityComparer(TKey)) | Produces the set union of two sequences by using the specified key and IEqualityComparer(T) to compare values. |