View difference between Paste ID: YRNvQM98 and b1EzNu6b
SHOW: | | - or go back to the newest paste.
1
function cunpack(t,iter,prevKey)
2
  iter = iter or pairs(t)
3-
  local k,v = iter(t,cv or nil)
3+
  local k,v = iter(t,prevKey or nil)
4
  if k ~= nil then
5
    return v,cunpack(t,iter,k)
6
  end
7
8
end