Module:TableTools: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
4 bytes removed ,  16 December 2013
fix lim variable in intersection function
(use select rather than {...})
(fix lim variable in intersection function)
Line 78: Line 78:
function p.intersection(...)
function p.intersection(...)
local vals, ret = {}, {}
local vals, ret = {}, {}
local lim = #tables
local lim = select('#', ...)
for i = 1, select('#', ...) do
for i = 1, lim do
local t = select(i, ...)
local t = select(i, ...)
for k, v in pairs(t) do
for k, v in pairs(t) do
Cookies help us deliver our services. By using our services, you agree to our use of cookies.