Module:TableTools: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
better variable name - getUnion deals with all tables, not just arrays
(add getUnion function)
(better variable name - getUnion deals with all tables, not just arrays)
Line 43:
--]]
function p.getUnion(...)
local arraystables = {...}
local vals, ret = {}, {}
for _, t in ipairs(arraystables) do
for k, v in pairs(t) do
vals[v] = true
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu