[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What is the fastest way to concatenate here?
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Thu, 22 Jun 2006 20:49:59 +0200
Some small corrections:
foo = function(funcs)
local t = { }
- for _, fun in pairs(funcs) do
- table.insert(t, fun())
+ for i, fun in ipairs(funcs) do
+ t[i] = fun()
end
return table.concat(t)
end
--
Wim