MathGroup Archive 2001

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

Search the Archive

Re: Best code to match corresponding list items?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27794] Re: Best code to match corresponding list items?
  • From: phbrf at t-online.de (Peter Breitfeld)
  • Date: Fri, 16 Mar 2001 04:37:48 -0500 (EST)
  • References: <98kobb$pp6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Roger Ison <rison at ix.netcom.com> schrieb:
> Given two lists
> A={a1,a2,a3,...}
> B={b1,b2,b3...}
> 
> I want to produce the list
> C={  {a1,b1}, {a2,b2}, {a3,b3}...}  }
> as efficiently as possible.
> Better yet, generalize to do this with N lists all of same length.
> 
Roger,
try Thread:

Thread[{A,B,C,...}]


Gruss Peter
-- 
=--=--=--=--=--=--=--=--=--=--=--=--=--=  http://home.t-online.de/home/phbrf
 Peter Breitfeld, Bad Saulgau, Germany    Meinen GnuPG/PGP-5x Key gibts dort



  • Prev by Date: Non-linear programming in Mathematica
  • Next by Date: page numbers of cells with celltag
  • Previous by thread: RE: Best code to match corresponding list items?
  • Next by thread: Re: Best code to match corresponding list items?