List manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg7390] List manipulation
- From: "V. Nandagopal" <nandgopa at math.tifr.res.in>
- Date: Fri, 30 May 1997 01:19:50 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, I have a list X={1,2,3,4,5,6,7,8}. How do I get a list of the folllowing kind: S={{1,2,3,4}, {1,2,3,5}, {1,2,3,6}, .....}. S will have 8-choose-2 = 70 elements. Each element of S should have length 4. Is there any function which does such list making? Something of the form ?????[list, n] Thanks in advance. V. Nandagopal School of Mathematics Tata Institute of Fundamental Research Colaba, Bombay 400 005, India e-mail: nandgopa at math.tifr.res.in