Difference between revisions of "Module:TableTools"

5 bytes added ,  14:13, 19 December 2013
valueIntersection: fix error message function name
>Mr. Stradivarius
(add isNan function, shallowClone function and removeDuplicates function, fix up valueIntersection function to work properly for NaNs)
>Mr. Stradivarius
(valueIntersection: fix error message function name)
Line 229: Line 229:
local lim = select('#', ...)  
local lim = select('#', ...)  
if lim < 2 then
if lim < 2 then
error(lim .. ' argument' .. (lim == 1 and '' or 's') .. " passed to 'intersection' (minimum is 2)", 2)
error(lim .. ' argument' .. (lim == 1 and '' or 's') .. " passed to 'valueIntersection' (minimum is 2)", 2)
end
end
local isNan = p.isNan
local isNan = p.isNan
Anonymous user