n-group ( seq n -- groups )


Vocabulary
grouping.extras

Inputs
seqa sequence
nan integer


Outputs
groupsan object


Word description
A strict version of <n-groups> that returns a list of sequences instead of slices.

Examples
USING: grouping.extras prettyprint ; "abcdefgh" 4 n-group .
{ "ab" "cd" "ef" "gh" }

USING: grouping.extras prettyprint ; "abcdefgh" 3 n-group .
{ "abc" "def" "gh" }


Definition