util/iterators.lua
changeset 7189 9c3930bcbb72
parent 7187 dedc6bf180e2
child 7260 425bc672d60b
--- a/util/iterators.lua	Mon Feb 22 17:40:42 2016 +0100
+++ b/util/iterators.lua	Mon Feb 22 17:43:40 2016 +0100
@@ -13,7 +13,7 @@
 local t_insert = table.insert;
 local select, next = select, next;
 local unpack = table.unpack or unpack; --luacheck: ignore 113
-local function pack(...) return { n = select("#", ...), ... }; end
+local pack = table.pack or function (...) return { n = select("#", ...), ... }; end
 
 -- Reverse an iterator
 function it.reverse(f, s, var)