MathGroup Archive 1997

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

Search the Archive

RE: Combining Lists?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8575] RE: [mg8572] Combining Lists?
  • From: Jean-Marie THOMAS <jmthomas at cybercable.tm.fr>
  • Date: Sun, 7 Sep 1997 22:12:58 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Try this:
MapThread[{#1,#2}&,{{1,2,3},{4,5,6}}]

-----Message d'origine-----
De:	Alan Hunter [SMTP:akh6n at virginia.edu]
Date:	dimanche 7 septembre 1997 05:17
=C0:	mathgroup at smc.vnet.net
Objet:	[mg8572] Combining Lists?

I think this is a pretty easy question so I hope someone will be able
to answer it, I just can't figure out how to do it.  If you have two
lists, for example {1, 2, 3} and {4, 5, 6}.  Is there a command to
combine them into a series of XY pairs like {{1, 4}, {2, 5}, {3, 6}}?=20
The book doesn't seem to have such a command, but I suspect one exists.=20
Thanks for any help you can provide.




  • Prev by Date: Re: Nesting in patterns
  • Next by Date: Re: Combining Lists?
  • Previous by thread: Re: Combining Lists?
  • Next by thread: Re: Combining Lists?