aboutsummaryrefslogtreecommitdiff
path: root/containers.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-10-29 13:00:08 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-10-29 13:00:30 -0700
commit23abab4f809e8d4b825746580082292db700036b (patch)
tree8eb95a3b781547abedadd08705a6e6291662737c /containers.moon
parentbe1df7ccd3fb5352ca666129aee93c56b5b27b40 (diff)
Some cleanups and fixes, made the parser more permissive of prematurely
terminated files.
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