Difference between revisions of "Module:TableTools"
Jump to navigation
Jump to search
fix lim variable in intersection function
en>Mr. Stradivarius (use select rather than {...}) |
en>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 |