Re: foreach loop
- To: mathgroup at smc.vnet.net
- Subject: [mg51927] Re: [mg51868] foreach loop
- From: DrBob <drbob at bigfoot.com>
- Date: Fri, 5 Nov 2004 02:17:25 -0500 (EST)
- References: <200411040649.BAA18018@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
Look up Map, Scan, and Fold. Bobby On Thu, 4 Nov 2004 01:49:09 -0500 (EST), symbio <symbio at has.com> wrote: > 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? > > > > -- DrBob at bigfoot.com www.eclecticdreams.net
- References:
- foreach loop
- From: "symbio" <symbio@has.com>
- foreach loop