aboutsummaryrefslogtreecommitdiff
path: root/containers.moon
diff options
context:
space:
mode:
Diffstat (limited to 'containers.moon')
-rw-r--r--containers.moon4
1 files changed, 4 insertions, 0 deletions
diff --git a/containers.moon b/containers.moon
index 1b0e650..30dcfc8 100644
--- a/containers.moon
+++ b/containers.moon
@@ -73,6 +73,10 @@ _list_mt =
if x == item
return true
return false
+ remove_1: (item)=>
+ for i,x in ipairs @
+ if x == item
+ remove(@, i)
index_of_1: (item)=>
for i,x in ipairs @
if x == item