Module:TableTools: Difference between revisions

    m>Mr. Stradivarius
    (add a key/value pair intersection function)
    m>Mr. Stradivarius
    (remove a variable that I didn't use in the end)
    Line 108: Line 108:
    --]]
    --]]
    function p.intersection(...)
    function p.intersection(...)
    local differentVals = {} -- A substitute variable to use when we have different values for the same key.
    local ret, track, pairCounts = {}, {}, {}
    local ret, track, pairCounts = {}, {}, {}
    local lim = select('#', ...)
    local lim = select('#', ...)