comparison util/iterators.lua @ 12589:39ae08180c81

compat: Remove handling of Lua 5.1 location of 'unpack' function
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 19:07:38 +0200
parents eade1316728e
children 5eaf77114fdb
comparison
equal deleted inserted replaced
12588:b15d3cf98ba6 12589:39ae08180c81
10 10
11 local it = {}; 11 local it = {};
12 12
13 local t_insert = table.insert; 13 local t_insert = table.insert;
14 local next = next; 14 local next = next;
15 local unpack = table.unpack or unpack; --luacheck: ignore 113 15 local unpack = table.unpack;
16 local pack = table.pack or require "util.table".pack; 16 local pack = table.pack or require "util.table".pack;
17 local type = type; 17 local type = type;
18 local table, setmetatable = table, setmetatable; 18 local table, setmetatable = table, setmetatable;
19 19
20 local _ENV = nil; 20 local _ENV = nil;