From 972de38421d14882de192ddbd51afd89c4ffb06c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 6 Mar 2018 16:50:20 -0800 Subject: Minor cleanup. --- nomsu.lua | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 17b40fe..62ff7db 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -23,21 +23,6 @@ do local _obj_0 = table insert, remove, concat = _obj_0.insert, _obj_0.remove, _obj_0.concat end -local Tuple = immutable(nil, { - name = "Tuple", - __tostring = function(self) - return "Tuple(" .. tostring(concat((function() - local _accum_0 = { } - local _len_0 = 1 - for _index_0 = 1, #self do - local x = self[_index_0] - _accum_0[_len_0] = repr(x) - _len_0 = _len_0 + 1 - end - return _accum_0 - end)(), ", ")) .. ")" - end -}) do local STRING_METATABLE = getmetatable("") STRING_METATABLE.__add = function(self, other) @@ -70,6 +55,9 @@ type_tostring = function(self) return _accum_0 end)(), ", ")) .. ")" end +local Tuple = immutable(nil, { + name = "Tuple" +}) local _list_0 = { "File", "Nomsu", -- cgit v1.2.3