List manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg73248] List manipulation
- From: "sepp" <gary.larson at gmx.at>
- Date: Thu, 8 Feb 2007 03:48:09 -0500 (EST)
hello, I would like to combine list elements in the following way: I have a list with liste={{a1,a2,a3},{b1,b2,b3},{c1,c2,c3},.....} and a single element {e} I would to add the element {e} to each sublist to get something like liste_new={ {a1,a2,a3,e},{b1,b2,b3,e},{c1,c2,c3,e},.....} so that finally I can apply a function f on the list liste_manipulated={f[ {a1,a2,a3,e}],f[{b1,b2,b3,e}],f[{c1,c2,c3,e}],.....} I had a look at thread, mapthread, inner, outer, but nothing really seems to fit... thank you in advance for useful comments!
- Follow-Ups:
- Re: List manipulation
- From: Stern <nycstern@gmail.com>
- Re: List manipulation
- From: Carl Woll <carlw@wolfram.com>
- Re: List manipulation
- From: János <janos.lobb@yale.edu>
- Re: List manipulation
- From: Stern <nycstern@gmail.com>
- Re: List manipulation