Difference between revisions of "Module:TableTools"

Jump to navigation Jump to search
46 bytes added ,  15:16, 19 December 2013
add type-checking to removeDuplicates
>Mr. Stradivarius
(fix the valueUnion function for NaNs (and make it a lot simpler to boot))
>Mr. Stradivarius
(add type-checking to removeDuplicates)
Line 64: Line 64:
--]]
--]]
function p.removeDuplicates(t)
function p.removeDuplicates(t)
checkType('removeDuplicates', 1, t, 'table')
local isNan = p.isNan
local isNan = p.isNan
local ret, exists = {}, {}
local ret, exists = {}, {}
Anonymous user

Navigation menu