List help needed

*To*: mathgroup at smc.vnet.net*Subject*: [mg5065] List help needed*From*: John Rowney <jrowney at inetg1.Arco.COM>*Date*: Fri, 25 Oct 1996 22:48:07 -0400*Organization*: AIOGC-HQ*Sender*: owner-wri-mathgroup at wolfram.com

Hi, I need a little help with lists. What I would like to do is the following: N by combining adjacent elements of the original list into sub lists. This might become clearer with an example. Given {a,b,c,d,e} of length 5, ALL possible length 4 lists subject to the conditions above are: {{a,b},c,d,e}, {a,{b,c},d,e}, {a,b,{c,d},e} and {a,b,c,{d,e}} two of the possible length 3 lists are {a,{b,c,d},e} and {{a,b},c,{d,e}} I hope you get the picture. In the "real" problem, N would be around 20 and n would be around 10. Thanks in advance John jrowney at arco.com