Returns a grouping by the unique elements in a sequence.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Grouping<T> Group<T>(
this IEnumerable<T> keys
)
<ExtensionAttribute>
Public Shared Function Group(Of T) (
keys As IEnumerable(Of T)
) As Grouping(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Grouping<T>^ Group(
IEnumerable<T>^ keys
)
[<ExtensionAttribute>]
static member Group :
keys : IEnumerable<'T> -> Grouping<'T>
Parameters
- keys
- Type: System.Collections.GenericIEnumerableT
A list.
Type Parameters
- T
- The type of the elements of the sequence.
Return Value
Type:
GroupingTA 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
IEnumerableT. 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).
Reference