Diff

util/iterators.lua @ 7188:e8f20be3e6f8

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 18:46:59 +0100
parent 7186:9c3930bcbb72
child 7257:425bc672d60b
line wrap: on
line diff
--- a/util/iterators.lua	Mon Feb 22 15:24:20 2016 +0100
+++ b/util/iterators.lua	Mon Feb 22 18:46:59 2016 +0100
@@ -11,8 +11,9 @@
 local it = {};
 
 local t_insert = table.insert;
-local select, unpack, next = select, unpack, next;
-local function pack(...) return { n = select("#", ...), ... }; end
+local select, next = select, next;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
+local pack = table.pack or function (...) return { n = select("#", ...), ... }; end
 
 -- Reverse an iterator
 function it.reverse(f, s, var)