[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: turning a table into a list?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 25 Aug 2003 11:58:12 -0300
A more efficient solution (avoids copying the table):
function my_unpack(t, i, n)
i = i or 1
n = n or table.getn(t)
if i <= n then
return t[i], my_unpack(t, i+1, n)
end
end
-- Roberto