Yes, ipairs is idiomatic, but that doesn&#x27;t matter here because ipairs doesn&#x27;t return the 0 index.<p><pre><code>  &gt; x = {}
  &gt; x[0] = 2
  &gt; x[1] = 3
  &gt; for i, v in ipairs(x) do print(i, v) end
  1	3
  &gt; x[2] = 4
  &gt; for i, v in ipairs(x) do print(i, v) end
  1	3
  2	4</code></pre>