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 end
function unique(table) function unique(table)
local lookup = {} return keys(set(table))
for _, value in pairs(table) do
lookup[value] = true
end
return keys(lookup)
end end
function rpairs(table) function rpairs(table)