Module:TableTools: Difference between revisions
fix lim variable in intersection function
m>Mr. Stradivarius (use select rather than {...}) |
m>Mr. Stradivarius (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 |