Last active
August 29, 2015 13:57
-
-
Save chrisle/9478860 to your computer and use it in GitHub Desktop.
Is this what you mean?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You have ... | |
[1,2,3,4,5,6,7,8,9] | |
[1,2,3,4,5,6,7] | |
[1,2,3] | |
You want in chunks of N (say 3) | |
[ | |
[1,2,3], | |
[4,5,6], | |
[7,8,9], | |
[1,2,3], | |
[4,5,6], | |
[7,1,2], | |
[3] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example Results