mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 23:33:53 +01:00
Apply luk3yx's code quality suggestion
This commit is contained in:
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user