ISequence T  Sliding Method (Int32)A Sandcastle Documented Class Library
Groups elements in fixed size blocks by passing a "sliding window" over them.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
IEnumerable<ISequence<T>> Sliding(
	int size
)

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 there are fewer elements than size.
See Also