Module:TableTools: Difference between revisions

check for existing values in p.union value arrays
(remove a variable that I didn't use in the end)
(check for existing values in p.union value arrays)
Line 56:
if trackArrays[k] then
local array = ret[k]
array[#arraylocal + 1] = vvalExists
ret[k]for =_, arrayVal in ipairs(array) do
if arrayVal == v then
valExists = true
end
end
if not valExists then
array[#array + 1] = v
ret[k] = array
end
else
ret[k] = {ret[k], v}
Anonymous user