How to iterate Lua table from end?
<p>How do I iterate a simple Lua table, that is <a href="https://www.lua.org/manual/5.3/manual.html#3.4.7" rel="noreferrer">a sequence</a>, from end?</p>
<p>Example of wanted behavior:</p>
<pre><code>local mytable = {'a', 'b', 'c'}
for i, value in reversedipairs(mytable) do
    print(i .. &quot;: &quot; .. value)
end
</code></pre>
<p>should output</p>
<pre><code>3: c
2: b
1: a
</code></pre>
<p>How to implement here <code>reversedipairs</code>?</p>