MathGroup Archive 2010

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

Search the Archive

understanding code


Hi,

The following code:

i[_] = 0;
i[1]++
i[1]++
i[1]++
i[1]++


return 0 1 2 3 4. I'd like to understand whats going on here. That is,

What is i?  Is it a function? And what is i[1]? Is it a function or a 
value? Etc...


Many thanks in advance,

Sam


  • Prev by Date: Re: help! I've lost the menu bar
  • Next by Date: Re: Anyone get OpenCL working?
  • Previous by thread: Re: Image Analysis: identifying objects with Mathematica 7.0
  • Next by thread: Re: understanding code