Grouping.Group<T>(IEnumerable<T>, IEquality Comparer<T>) Method
Returns a grouping by the unique elements in a sequence
using the specified comparer to determine equality.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A grouping of the elements of keys and indexed by the unique elements in keys.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Grouping<T> Group<T>(
this IEnumerable<T> keys,
IEqualityComparer<T> comparer
)
Parameters
- keys IEnumerable<T>
- A list.
- comparer IEqualityComparer<T>
- The comparer used to determine whether two keys are equal.
Type Parameters
- T
- The type of the elements of the sequence.
Return Value
Grouping<T>A grouping of the elements of keys and indexed by the unique elements in keys.