Re: List Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg63496] Re: [mg63478] List Manipulation
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 3 Jan 2006 01:25:00 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
list1 = {{a, b, c, d}, {e, f, g, h}};
list2 = {{1}, {2}};
MapThread[Join[#1, #2] &, {list1, list2}]
{{a, b, c, d, 1}, {e, f, g, h, 2}}
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: LectorZ [mailto:lectorz at mail.ru]
To: mathgroup at smc.vnet.net
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