Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

understanding code

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114147] understanding code
  • From: Sam Takoy <sam.takoy at yahoo.com>
  • Date: Thu, 25 Nov 2010 05:57:27 -0500 (EST)

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