# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1544283365 -3600
# Node ID eade1316728e0ef525a04f0529ad64e5907d4179
# Parent  8c92ef4270c9c9b1cf1dc175041c024fd8d60cf8
util.iterators: Use pack from table.pack

diff -r 8c92ef4270c9 -r eade1316728e util/iterators.lua
--- a/util/iterators.lua	Sat Dec 08 16:35:39 2018 +0100
+++ b/util/iterators.lua	Sat Dec 08 16:36:05 2018 +0100
@@ -11,9 +11,9 @@
 local it = {};
 
 local t_insert = table.insert;
-local select, next = select, next;
-local unpack = table.unpack or unpack; --luacheck: ignore 113 143
-local pack = table.pack or function (...) return { n = select("#", ...), ... }; end -- luacheck: ignore 143
+local next = next;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
+local pack = table.pack or require "util.table".pack;
 local type = type;
 local table, setmetatable = table, setmetatable;