Apply luk3yx's code quality suggestion

This commit is contained in:
Lars Mueller 2021-03-25 18:02:20 +01:00
parent e212ba7f3b
commit 0c47e04347

@ -497,11 +497,7 @@ function set(table)
end
function unique(table)
local lookup = {}
for _, value in pairs(table) do
lookup[value] = true
end
return keys(lookup)
return keys(set(table))
end
function rpairs(table)