I thought I would add the code I envisioned for from(), which probably matches something on the lua-users wiki but I can't find the page...
local from =
function (t, ...)
local collected = {}
for _, k in ipairs({ ... }) do
table.insert(collected, t[k])
end
return table.unpack(collected)
end
local tins, trem, tcat = from(table, 'insert', 'remove', 'concat')
The Power Patches page is cool ;]
PS: Just want to leave a note saying that I don't like from() -- as I said earlier, it encourages users to make smaller identifiers so they don't have to write each one twice (once after local and again in from)