foreach loop
- To: mathgroup at smc.vnet.net
- Subject: [mg51868] foreach loop
- From: "symbio" <symbio at has.com>
- Date: Thu, 4 Nov 2004 01:49:09 -0500 (EST)
- Reply-to: "symbio" <symbio at sha.com>
- Sender: owner-wri-mathgroup at wolfram.com
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?
- Follow-Ups:
- Re: foreach loop
- From: Yasvir Tesiram <yat@omrf.ouhsc.edu>
- Re: foreach loop
- From: János <janos.lobb@yale.edu>
- Re: foreach loop
- From: DrBob <drbob@bigfoot.com>
- Re: foreach loop