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: [mg73276] Re: List manipulation
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Fri, 9 Feb 2007 02:25:44 -0500 (EST)
  • References: <eqep4g$5dk$1@smc.vnet.net>

In[7]:=
listManipulated[alist:{__List},fn_]:=Replace[alist,{a__}:>fn[{a,e}],
{1}];
In[8]:=
liste={{a1,a2,a3},{b1,b2,b3},{c1,c2,c3}} ;
listManipulated[liste,f]
Out[9]=
{f[{a1,a2,a3,e}],f[{b1,b2,b3,e}],f[{c1,c2,c3,e}]}

dkr



  • Prev by Date: Re: DSolve y'[t]==y[t-a]
  • Next by Date: Re: List manipulation
  • Previous by thread: Re: List manipulation
  • Next by thread: Re: List manipulation