I tried something like this, its ok?
[email protected] t table
[email protected] i integer if is nil this will return the last value
[email protected] any,any
function prev(t,i)
if t then
if not i then return #t,t[#t] end
local k1,v1
for k,v in pairs(t) do
if v==i then return...