Anonymous
Not logged in
Create account
Log in
Search
Module:FunList: Difference between revisions
From Melvor Idle
Namespaces
Module
Discussion
More
More
Page actions
Read
View source
History
← Older edit
Newer edit →
Module:FunList
(view source)
Revision as of 22:47, 15 July 2024
257 bytes removed
,
15 July
Undo revision 77687 by
Ricewind
(
talk
)
Revision as of 21:40, 15 July 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
No edit summary
← Older edit
Revision as of 22:47, 15 July 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
(Undo revision 77687 by
Ricewind
(
talk
))
Tag
:
Undo
Newer edit →
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
Ricewind
2,875
edits
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Contributing
Contribute to this wiki
Maintenance
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
Printable version