>map</CODE>,
but with altered syntax.<PRE CLASS="verbatim">   s.foreach(&lt;var&gt;) =&gt;
      &lt;body&gt;
   </PRE><P>For example, the following function prints all the elements of the sequence.</P><PRE CLASS="verbatim">   PrintSequence(s) =
      s.foreach(x) =&gt;
         println(Elem = $(x))
   </PRE><P>The <CODE>export</CODE> form is valid in a <CODE>foreach</CODE> body. The following
function counts the number of zeros in the sequence.</P><PRE CLASS="verbatim">   Zeros(s) =
      count = $(int 0)
