VocabularygroupingInputs and outputs| seq | a sequence |
| n | a non-negative integer |
| array | a sequence of sequences |
Word descriptionSplits the sequence into overlapping clumps of
n elements and collects the clumps into a new array.
ErrorsThrows an error if
n is larger than the length of the sequence.
ExamplesUSING: grouping prettyprint ;
{ 3 1 3 3 7 } 2 clump .
{ { 3 1 } { 1 3 } { 3 3 } { 3 7 } }
See alsocircular-clump,
groupDefinition