fix table.empty being inverted

This commit is contained in:
2025-12-08 03:32:56 -05:00
parent a7db0d8e81
commit d494f02fe3

View File

@@ -4,7 +4,7 @@
-- Table / List -- Table / List
-- Whether a table contains no keys -- Whether a table contains no keys
function table.empty(t) function table.empty(t)
return next(t) ~= nil return next(t) == nil
end end
-- Apply a function to each key in a table -- Apply a function to each key in a table