Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

RE: Simple list operation

  • To: mathgroup at
  • Subject: [mg45648] RE: [mg45579] Simple list operation
  • From: "Ingolf Dahl" <ingolf.dahl at>
  • Date: Fri, 16 Jan 2004 19:58:09 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Transpose[{x, y}]

Ingolf Dahl

>-----Original Message-----
>From: Dr. Wolfgang Hintze [mailto:weh at]
To: mathgroup at
>Sent: Friday, January 16, 2004 12:05
>To: mathgroup at
>Subject: [mg45648] [mg45579] Simple list operation
>Given two lists
>x = {a, b, c};
>y = {A, B, C};
>how can I get the list of pairs
>I have used a brute force method like
>p = Table[ {x[[i]], y[[i]]}, {i, 1, 3}]
>{{a, A}, {b, B}, {c, C}}
>but I'm sure there is a much more elegant way.
>Any hint is greatly appreciated.

  • Prev by Date: Re: How do I Plot a B-Spline Surface and model a vase
  • Next by Date: RE: List operation
  • Previous by thread: Re: Simple list operation
  • Next by thread: Re: Simple list operation