Slice a list of integers into non-overlapping sublists of exactly the given chunk size.
Constraints
Example
['>>> chunk_list([1, 2, 3, 4, 5, 6], 2)\n[[1, 2], [3, 4], [5, 6]]', '>>> chunk_list([1, 2, 3, 4, 5], 3)\n[[1, 2, 3], [4, 5]]', '>>> chunk_list([], 2)\n[]']
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints