Re: List Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg63504] Re: [mg63478] List Manipulation
- From: Clifford Martin <camartin at snet.net>
- Date: Tue, 3 Jan 2006 01:25:36 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
list1 = {{a, b, c, d}, {e, f, g, h}}
list2 = {{1}, {2}}
list4 = Flatten[Transpose[list2], 1]
list5 = Transpose[list1]
list3 = Transpose[Append[list5, list4]]
out={{a, b, c, d, 1}, {e, f, g, h, 2}}
Hope this helps.
Cliff
LectorZ <lectorz at mail.ru> 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