Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: foreach loop

  • To: mathgroup at
  • Subject: [mg51927] Re: [mg51868] foreach loop
  • From: DrBob <drbob at>
  • Date: Fri, 5 Nov 2004 02:17:25 -0500 (EST)
  • References: <>
  • Reply-to: drbob at
  • Sender: owner-wri-mathgroup at

Look up Map, Scan, and Fold.


On Thu, 4 Nov 2004 01:49:09 -0500 (EST), symbio <symbio at> 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

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