Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unpackNum(t, count, i)
- i = i or 1
- if i >= count then
- return sub(t, i)
- elseif i < count and t[i] ~= nil then
- return t[i], unpackNum(table, count, i + 1)
- end
- end
- function sub(table, start)
- local sub = {}
- for i=start,#table do
- sub[#sub + 1] = table[i]
- end
- return sub
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement