forked from redo/BlockLua
fix table.empty being inverted
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user