MathGroup Archive 2006

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

Search the Archive

Re: Something in the spirit of letrec


On 8/4/06 at 3:59 AM, mariano.suarezalvarez at gmail.com (Mariano
Suárez-Alvarez) wrote:

>I'm trying to somehow come up with a function WithSelf such that
>evaluating

>WithSelf[{a,self[1]+b,self[2]+2}]

>will result in {a,a+b,a+b+c}. 

FoldList does this, i.e.,

In[2]:=
Rest@FoldList[Plus,0,{a,b,c}]

Out[2]=
{a,a+b,a+b+c}
--
To reply via email subtract one hundred and four


  • Prev by Date: How to do Chebyshev expansion in Mathematica?
  • Next by Date: Re: returning a variable's name, rather than the variable's contents
  • Previous by thread: Something in the spirit of letrec
  • Next by thread: Re: Something in the spirit of letrec