MathGroup Archive 2004

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

Search the Archive

Re: foreach loop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51918] Re: foreach loop
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 5 Nov 2004 02:17:11 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <cmckcr$i2d$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Function[{i},expr] /@ {fall, winter, spring, summer}

Regards
  Jens

"symbio" <symbio at has.com> schrieb im Newsbeitrag 
news:cmckcr$i2d$1 at smc.vnet.net...
> Is there a foreach loop statement in Mathematica?  I need to loop through 
> a
> list of words, rather than numbers.  I need the equivalent of Do[expr,
> {n,0,10,1}], except I need to step through a list like so:  foreach loop
> [expr, {fall, winter, spring, summer}].  Can anyone help?
> 



  • Prev by Date: Re: foreach loop
  • Next by Date: Re: Counting Runs
  • Previous by thread: Re: foreach loop
  • Next by thread: Re: foreach loop