comparison util/iterators.lua @ 10411:db2a06b9ff98

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Nov 2019 16:52:31 +0100
parents eade1316728e
children 39ae08180c81
comparison
equal deleted inserted replaced
10410:659b577f280c 10411:db2a06b9ff98
9 --[[ Iterators ]]-- 9 --[[ Iterators ]]--
10 10
11 local it = {}; 11 local it = {};
12 12
13 local t_insert = table.insert; 13 local t_insert = table.insert;
14 local select, next = select, next; 14 local next = next;
15 local unpack = table.unpack or unpack; --luacheck: ignore 113 143 15 local unpack = table.unpack or unpack; --luacheck: ignore 113
16 local pack = table.pack or function (...) return { n = select("#", ...), ... }; end -- luacheck: ignore 143 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;
21 --luacheck: std none 21 --luacheck: std none