From 23abab4f809e8d4b825746580082292db700036b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 29 Oct 2018 13:00:08 -0700 Subject: Some cleanups and fixes, made the parser more permissive of prematurely terminated files. --- containers.moon | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'containers.moon') 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 -- cgit v1.2.3