MathGroup Archive 2004

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

Search the Archive

Re: Simple list operation


p = Transpose[{x, y}]


Bob Hanlon

In article <bu8go7$aj8$1 at smc.vnet.net>, "Dr. Wolfgang Hintze" <weh at snafu.de>
wrote:

<< Given two lists

In[10]:=
x = {a, b, c};

In[11]:=
y = {A, B, C};

how can I get the list of pairs

p={{a,A},{b,B},{c,C}}?

I have used a brute force method like

In[9]:=
p = Table[ {x[[i]], y[[i]]}, {i, 1, 3}]

Out[9]=
{{a, A}, {b, B}, {c, C}}


  • Prev by Date: Reservoir models in mathematica
  • Next by Date: Re: Run in Windows
  • Previous by thread: Re: Simple list operation
  • Next by thread: Fwd: Simple list operation