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.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'containers.lua') 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 -- cgit v1.2.3