e <code class="mendoza-code">for</code> macro will be
expanded to something very similar to our original version with a <code class="mendoza-code">while</code>
loop.
</p>
<p>We can do something similar with the more flexible <code class="mendoza-code">loop</code> macro.
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsyn-coresym">var</span> <span class="mdzsyn-coresym">sum</span> <span class="mdzsyn-number">0</span>)
(<span class="mdzsyn-coresym">loop</span> [<span class="md