Partitions elements in fixed size sequences.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax IEnumerable<ISequence<T>> Grouped(
int size
)
IEnumerable<ISequence<T>> Grouped(
int size
)
Function Grouped (
size As Integer
) As IEnumerable(Of ISequence(Of T))
Function Grouped (
size As Integer
) As IEnumerable(Of ISequence(Of T))
IEnumerable<ISequence<T>^>^ Grouped(
int size
)
IEnumerable<ISequence<T>^>^ Grouped(
int size
)
abstract Grouped :
size : int -> IEnumerable<ISequence<'T>>
abstract Grouped :
size : int -> IEnumerable<ISequence<'T>>
Parameters
- size
- Type: System Int32
The number of elements per group.
Return Value
Type:
IEnumerable ISequence T An iterator producing sequences of size
size. The last sequence will be truncated if the elements don't divide evenly.
See Also