יחידה:TableTools: הבדלים בין גרסאות בדף

add a key/value pair intersection function
remove a variable that I didn't use in the end
שורה 108: שורה 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('#', ...)