Partitions elements in fixed size sequences.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public IEnumerable<ISequence<T>> Grouped(
int size
)
public IEnumerable<ISequence<T>> Grouped(
int size
)
Public Function Grouped (
size As Integer
) As IEnumerable(Of ISequence(Of T))
Public Function Grouped (
size As Integer
) As IEnumerable(Of ISequence(Of T))
public:
virtual IEnumerable<ISequence<T>^>^ Grouped(
int size
) sealed
public:
virtual IEnumerable<ISequence<T>^>^ Grouped(
int size
) sealed
abstract Grouped :
size : int -> IEnumerable<ISequence<'T>>
override Grouped :
size : int -> IEnumerable<ISequence<'T>>
abstract Grouped :
size : int -> IEnumerable<ISequence<'T>>
override 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.
Implements
ISequence T Grouped(Int32)See Also