Module:TableTools: Difference between revisions

    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 = #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