Module:TableTools: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
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 = | local lim = select('#', ...) | ||
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 |