author | Kim Alvefur <zash@zash.se> |
Mon, 22 Feb 2016 17:43:40 +0100 | |
changeset 7189 | 9c3930bcbb72 |
parent 7188 | 5687788a2e4d |
child 7190 | 3d2c2f0809ee |
--- 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)