Slide 49
Slide 49 text
Challenge: chunk
Write a generic function chunk.
Takes a Collection and an int n as input.
Outputs a Collection>,
where every n items are grouped together.
Example: [1,2,3,4,5,6] => [[1,2],[3,4],[5,6]]
Should work with ArrayList, LinkedList, Queue, etc