Re: Noah's List

*To*: mathgroup at smc.vnet.net*Subject*: [mg5699] Re: [mg5673] Noah's List*From*: Allan Hayes <hay at haystack.demon.co.uk>*Date*: Sat, 11 Jan 1997 14:29:02 -0500*Sender*: owner-wri-mathgroup at wolfram.com

Hans Havermann <haha at astral.magic.ca> >Subject: [mg5699] [mg5673] Noah's List writes > I have two lists, x and y, each containing n elements. > I would like to generate a new list, > {{x[[1]],y[[1]]}, {x[[2]],y[[2]]},... {x[[n]],y[[n]]}}, xy ={Array[x,{4}], Array[y,{4}]} {{x[1], x[2], x[3], x[4]}, {y[1], y[2], y[3], y[4]}} Transpose[xy] {{x[1], y[1]}, {x[2], y[2]}, {x[3], y[3]}, {x[4], y[4]}} Allan Hayes hay at haystack.demon.co.uk http://www.haystack.demon.co.uk