">do</span>
  <span class="hljs-built_in">print</span>(index, value)
<span class="hljs-keyword">end</span>
</code></pre>
<p>Ah yes, so convenient!
There is one gotcha with doing this.
If you wanted to edit the table from inside the loop, you need to access the table directly:</p>
<pre><code class="lang-lua">list = {<span class="hljs-string">&apos;dog&apos;</span>, <span class="hljs-string">&apos;cat&apos;</span>, <span class="hljs-string">&apos;mouse&apos;</span>}
<span class="hljs-keyword">for</span> index