Board Thread:Lua Help/@comment-28857013-20150218124053

Just a small problem, but in which way should I do this when I have multiple table values to deal with, while the functions I want for both tables are exactly the same? Say for something like: local p={} local table = { ["foo"]=["foobar"] ["bar"]=["barfoo"] } function p.boofar (frame) return table[frame.args[1]] end return p And I want to change the table into something else. Sure I could have copied the whole thing and then just change the table part, but I'm trying to see if there is a more efficient way to do so, and when the value(s) are much bigger and there are like 10 functions. 