aboutsummaryrefslogtreecommitdiff
path: root/containers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'containers.lua')
-rw-r--r--containers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/containers.lua b/containers.lua
index ab8647e..8ab6c80 100644
--- a/containers.lua
+++ b/containers.lua
@@ -186,6 +186,13 @@ local _list_mt = {
end
return false
end,
+ remove_1 = function(self, item)
+ for i, x in ipairs(self) do
+ if x == item then
+ remove(self, i)
+ end
+ end
+ end,
index_of_1 = function(self, item)
for i, x in ipairs(self) do
if x == item then