[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: iterating and calling functions in lua tables
- From: "Wim Couwenberg" <wim.couwenberg@...>
- Date: Sun, 21 Dec 2008 11:46:31 +0100
> How can I iterate through this table, in the order the functions were added,
> and call each function in turn.
local functions = {f1, f2, f3, f4, f5, f6}
for f in ipairs(functions) do
f()
end