e numeric keys and will generally perform faster, so it&apos;s good to know the difference.</p>
<h3 id="under-the-generic-for-loop-hood">Under the generic-for-loop hood</h3>
<p><code>ipairs</code> and <code>pairs</code> are just regular functions that we invoke.
They return a function (yes, a function that returns a function!) and this returned function programs our loop to behave how we want.</p>
<pre><code class="lang-lua"><span class="hljs-keyword">for</span> key, value <span class="hljs-keyword">in</spa