Grouping.Group<T>(IEnumerable<T>) Method

Returns a grouping by the unique elements in a sequence.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Grouping<T> Group<T>(
	this IEnumerable<T> keys
)

Parameters

keys  IEnumerable<T>
A list.

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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also