MathGroup Archive 1997

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

Search the Archive

Re: Combining Lists?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8588] Re: Combining Lists?
  • From: Bruce Wolk <bawolk at ucdavis.edu>
  • Date: Sun, 7 Sep 1997 22:13:08 -0400
  • Organization: University of California, Davis
  • Sender: owner-wri-mathgroup at wolfram.com

Alan Hunter wrote:
> 
> 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}}?
> The book doesn't seem to have such a command, but I suspect one exists.
> Thanks for any help you can provide.

Transpose[{{1,2,3},{4,5,6}}]  does the job.

Bruce


  • Prev by Date: Re: Question about Normal[] and O[]
  • Next by Date: make 1. x 10^-10 read 10^-10 on graph axis?
  • Previous by thread: Re: Combining Lists?
  • Next by thread: Re: Combining Lists?