Re: List Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg63501] Re: [mg63478] List Manipulation
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 3 Jan 2006 01:25:19 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
list1={{a,b,c,d},{e,f,g,h}}; list2={{1},{2}}; list3=Join@@@Thread[{list1,list2}] {{a, b, c, d, 1}, {e, f, g, h, 2}} list3=Join@@@Transpose[{list1,list2}] {{a, b, c, d, 1}, {e, f, g, h, 2}} Bob Hanlon > > From: "LectorZ" <lectorz at mail.ru> To: mathgroup at smc.vnet.net > Date: 2006/01/02 Mon AM 05:49:11 EST > Subject: [mg63501] [mg63478] List Manipulation > > 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 > >