Anonymous

Module:FunList: Difference between revisions

From Melvor Idle
Undo revision 77687 by Ricewind (talk)
No edit summary
(Undo revision 77687 by Ricewind (talk))
Tag: Undo
Line 231: Line 231:
end
end
table.insert(self.delayedFuncs, delayedFunc)
table.insert(self.delayedFuncs, delayedFunc)
return self
end
function funlist:execute()
local result = {}
for k, v in pairs(self.mytable) do
local mutation = v
for _, func in pairs(self.delayedFuncs) do
mutation = func(k, mutation)
end
table.insert(result, mutation)
end
return result
end
end


2,875

edits