Special page

Difference between pages "Module:TableTools" and "Module:TableTools/sandbox"

(Difference between pages)
Page 1
Page 2
m (1 revision imported: Adding templates for portals)
 
(Module Creation)
 
Line 72: Line 72:
 
-- NaNs can't be table keys, and they are also unique, so we don't need to check existence.
 
-- NaNs can't be table keys, and they are also unique, so we don't need to check existence.
 
ret[#ret + 1] = v
 
ret[#ret + 1] = v
else
+
elseif not exists[v] then
if not exists[v] then
+
ret[#ret + 1] = v
ret[#ret + 1] = v
+
exists[v] = true
exists[v] = true
 
end
 
 
end
 
end
 
end
 
end