Difference between revisions of "Module:TableTools"

106 bytes removed ,  03:19, 17 December 2013
remove a variable that I didn't use in the end
>Mr. Stradivarius
(add a key/value pair intersection function)
>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('#', ...)
Anonymous user