aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 0ea6078..4204bbc 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -23,13 +23,10 @@ do
local _obj_0 = table
insert, remove, concat = _obj_0.insert, _obj_0.remove, _obj_0.concat
end
-local _tuples = { }
+local _Tuple = immutable(nil)
local Tuple
Tuple = function(t)
- if not _tuples[#t] then
- _tuples[#t] = immutable(#t)
- end
- return _tuples[#t]:from_table(t)
+ return _Tuple(table.unpack(t))
end
local cached
cached = function(fn)