Re: What is the fastest way to concatenate here?
[
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: 2006年6月22日 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