Comparison

util/iterators.lua @ 10061:5c71693c8345

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 08 Jul 2019 02:44:32 +0200
parent 9688:eade1316728e
child 12589:39ae08180c81
comparison
equal deleted inserted replaced
10060:7a36b7ac309b 10061:5c71693c8345
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