From 0c47e04347ade86f713681ed69eb6aa72600c510 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Thu, 25 Mar 2021 18:02:20 +0100 Subject: [PATCH] Apply luk3yx's code quality suggestion --- table.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/table.lua b/table.lua index dbdd954..cf7bebb 100644 --- a/table.lua +++ b/table.lua @@ -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)