[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Generate multidimensional tables
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 6 Oct 2009 12:39:33 +0200
On Tue, Oct 6, 2009 at 12:36 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
Sorry, one of those damn GMail shortcuts ...
OK, for the 2D case we just have a table of row tables
function dim(n,m)
local res = {}
for i = 1,n do
local row = {}
res[i] = row
for j = 1,m do
row[j] = 0
end
end
return res
end
So, no clever dostring tricks, and the result is returned directly.
steve d.