Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

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




  • Prev by Date: How do you make Mma assume a parameter is real and positive?
  • Next by Date: Re: Export Numbers
  • Previous by thread: How do you make Mma assume a parameter is real and positive?
  • Next by thread: Fwd: List manipulation