VocabularygroupingInputsOutputsarray | a sequence of sequences |
Word descriptionSplits the sequence into disjoint groups of
n elements and collects the groups into a new array.
NotesIf the sequence length is not a multiple of
n, the final subsequence in the list will be shorter than
n elements.
ExamplesUSING: grouping prettyprint ;
{ 3 1 3 3 7 } 2 group .
{ { 3 1 } { 3 3 } { 7 } }
See alsoclump,
circular-clumpDefinition