Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73278] Re: List manipulation
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Fri, 9 Feb 2007 02:26:46 -0500 (EST)
  • References: <eqep4g$5dk$1@smc.vnet.net>

Another alternative is:

In[13]:=
listManipulated[alist:{__List},fn_]:=fn[{Sequence@@#,e}]&/@alist;

In[14]:=
liste={{a1,a2,a3},{b1,b2,b3},{c1,c2,c3}} ;
listManipulated[liste,f]

Out[15]=
{f[{a1,a2,a3,e}],f[{b1,b2,b3,e}],f[{c1,c2,c3,e}]}

dkr



  • Prev by Date: Re: List manipulation
  • Next by Date: Showing that a hypergeometric expression is 0?
  • Previous by thread: Re: List manipulation
  • Next by thread: Re: List manipulation