Could someone advise how to ‘recursively’ re-group a given list into a series of sublists? I suppose this could be somewhat similar to a rotation, by which the first element is systematically removed, except that the rotation process stops with the last ‘element pair’ in a list. Here’s what I wish to achieve given the list of four and five elements (assuming that this process could be applied to any number of elements in a list):
List (four elements): (1 2 3 4)
Sublists: (2 3 4) (3 4)
List (five elements): (1 2 3 4 5)
Sublists: (2 3 4 5) (3 4 5) (4 5)
Thank you!