Anonymous user
Module:TableTools: Difference between revisions
add type-checking to removeDuplicates
Enwikipedia>Mr. Stradivarius (fix the valueUnion function for NaNs (and make it a lot simpler to boot)) |
Enwikipedia>Mr. Stradivarius (add type-checking to removeDuplicates) |
||
Line 64:
--]]
function p.removeDuplicates(t)
checkType('removeDuplicates', 1, t, 'table')
local isNan = p.isNan
local ret, exists = {}, {}
|