diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-29 13:00:08 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-29 13:00:30 -0700 |
| commit | 23abab4f809e8d4b825746580082292db700036b (patch) | |
| tree | 8eb95a3b781547abedadd08705a6e6291662737c /containers.moon | |
| parent | be1df7ccd3fb5352ca666129aee93c56b5b27b40 (diff) | |
Some cleanups and fixes, made the parser more permissive of prematurely
terminated files.
Diffstat (limited to 'containers.moon')
| -rw-r--r-- | containers.moon | 4 |
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 |
