combining lists
- To: mathgroup at smc.vnet.net
- Subject: [mg32435] combining lists
- From: Harald von der Osten-Woldenburg <hvdosten at lb.netic.de>
- Date: Sat, 19 Jan 2002 19:03:42 -0500 (EST)
- Organization: LF.net GmbH, Stuttgart, Germany
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
because I feel that I am again and again starting at the same point
after a while, just a short question.
How can I combine two lists, say:
list1={{x1,y1},{x2,y2},...,{nx,ny}} and
list2={{a1,b1},{a2,b2},...,{an,bn}}
so that the combination would be:
combined={{{x1,y1},{a1,b1}},{{x2,y2},{a2,b2}},....,{{xn,yn},{an,bn}}}
I tried something like
combi=Join[Take[#2]&, list1, Take[#,2]&, list2]
cimbined=Partition[combi,2]
but without any success. I am sure it is easy but ....
Thanks a lot,
Harry