MathGroup Archive 2004

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

Search the Archive

Sequential evaluation of lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53076] Sequential evaluation of lists
  • From: "Ray Koopman" <koopman at sfu.ca>
  • Date: Wed, 22 Dec 2004 04:53:22 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

When I first started using Mathematica (v2), one of the features that
I found rather surprising is its sequential evaluation of lists, as in

In[1]:= x = 0; {x++,x++,x++}
Out[1]= {0,1,2}

I had expected a warning that such code should be avoided because
it presumed sequential evaluation, which could not be guaranteed,
and a recommendation to treat list elements as being evaluated in
parallel -- if not simultaneously then in no particular order.
However, so far I have found no exception to sequential evaluation
and no mention of it in any documentation. Have I missed something?


  • Prev by Date: Sequential evaluation of lists
  • Next by Date: Re: Help on a recursive function
  • Previous by thread: Sequential evaluation of lists
  • Next by thread: Re: Sequential evaluation of lists