 | EnumerableExtensions.Grouped<T> Method |
Partitions elements in fixed size
Credits to http://stackoverflow.com/a/13731854/465132
Namespace:
Akka.Cluster.Sharding
Assembly:
Akka.Cluster.Sharding (in Akka.Cluster.Sharding.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static IEnumerable<IEnumerable<T>> Grouped<T>(
this IEnumerable<T> items,
int size
)
[<ExtensionAttribute>]
static member Grouped :
items : IEnumerable<'T> *
size : int -> IEnumerable<IEnumerable<'T>>
Parameters
- items
- Type: System.Collections.Generic.IEnumerable<T>
TBD - size
- Type: System.Int32
The number of elements per group
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Akka.Cluster.Sharding.EnumerableExtensions.Grouped``1(System.Collections.Generic.IEnumerable{``0},System.Int32)"]
Return Value
Type:
IEnumerable<IEnumerable<T>>[Missing <returns> documentation for "M:Akka.Cluster.Sharding.EnumerableExtensions.Grouped``1(System.Collections.Generic.IEnumerable{``0},System.Int32)"]
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