Basically, I want to group items in a list. For example:
- For
[1, 2, 3, 4, 5, 6], I want[[1, 2, 3], [4, 5, 6]] - For
[1, 2, 3, 4, 5, 6, 7], I want[[1, 2, 3], [4, 5, 6], [7]]
I know how to unnest nested lists, but I have no idea how to create a nested list.