Re: List Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg63516] Re: List Manipulation
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Tue, 3 Jan 2006 01:26:26 -0500 (EST)
- References: <dpb0t5$2j3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
LectorZ wrote: > Hi guys, > > One simple question to list manipulation. > > I have 2 lists > > list1 = {{a,b,c,d},{e,f,g,h}} > list2 = {{1},{2}} > > Which function(s) should I use to get > > list3 = {{a,b,c,d,1},{e,f,g,h,2}} > > Thanx in advance > > LZ Join[{a,b,c,d},{1}] gives {a,b,c,d,1}, so either Join@@@Transpose@{list1,list2} or MapThread[Join,{list1,list2}] will give what you want.