aboutsummaryrefslogtreecommitdiffstats
path: root/util/set.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/set.lua')
-rw-r--r--util/set.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/set.lua b/util/set.lua
index 892f1c9d..bb318adf 100644
--- a/util/set.lua
+++ b/util/set.lua
@@ -91,6 +91,10 @@ function new(list)
end
end
+ function set:empty()
+ return not next(items);
+ end
+
if list then
set:add_list(list);
end