aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-03-06 16:50:20 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-03-06 16:50:25 -0800
commit972de38421d14882de192ddbd51afd89c4ffb06c (patch)
tree7d4807fd0f5e6bce6a34a747dabe32d1ce46de20 /nomsu.lua
parent4bc1f59725cfa0f765467c968cbaa7700fddf820 (diff)
Minor cleanup.
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua18
1 files changed, 3 insertions, 15 deletions
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",