span class="hljs-built_in">ipairs</span>(list)

<span class="hljs-keyword">for</span> index, value <span class="hljs-keyword">in</span> iterator, list, start_number <span class="hljs-keyword">do</span>
  <span class="hljs-built_in">print</span>(index)
<span class="hljs-keyword">end</span>
</code></pre>
<p><code>ipairs</code> gives us an iterator to pass to the for loop, as well as our list we already had, and a starting number.
We can print the results of ipairs and see the 3 things it gives us:</p>
<pre><c