<p>Let&apos;s take a look at the sibling to the numeric for loop called the generic for loop.
It&apos;s called generic for loop because it takes a function that makes it behave in different ways for different situations.
It doesn&apos;t do anything on its own.
It relies on the function to tell it how to behave.</p>
<h3 id="ipairs">ipairs</h3>
<p>Here&apos;s what generic for loops look like:</p>
<pre><code class="lang-lua">list = {<span class="hljs-string">&apos;dog&apos;</span>, <span class="hljs-string">&a