Storing functions in a table
🌙 Lua•Updated 2 days ago•0 views
No - local commands = {["add"]=function(a,b) ... end} works, and you can also assign named functions later: commands.add = function(...) end.
Does a function in a table have to be defined inline
No - local commands = {["add"]=function(a,b) ... end} works, and you can also assign named functions later: commands.add = function(...) end.