 void, llists:seq(1, 3)).
  1 2 3 void
  &gt; lists:foldr(P, void, llists:seq(1, 3)).
  3 2 1 void</pre>
 
  The iterator is fully evaluated before the fold begins, infinite
  iterators will never return. <code>foldl/3</code> does not fully evaluate the
  iterator and is usually preferred to <code>foldr/3</code>.</p>
<p><b>See also:</b> <a href="#foldl-3">foldl/3</a>.</p>

<h3 class="function"><a name="foreach-2">foreach/2</a></h3>
<div class="spec">
<p><tt>foreach(Fun, Iterator) -&gt; ok</tt>
<ul class="de