Anonymous

Module:FunList: Difference between revisions

From Melvor Idle
no edit summary
(Delayed func test)
No edit summary
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