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.
NotesFor an empty sequence, the result is an empty sequence. For a non empty sequence with a length smaller than
n, the result will be an empty sequence.
ExamplesUSING: grouping prettyprint ;
{ 3 1 3 3 7 } 2 clump .
{ { 3 1 } { 1 3 } { 3 3 } { 3 7 } }
See alsocircular-clump,
groupDefinition