Software /
code /
prosody
Changeset
7186:9c3930bcbb72
util.iterators: Use table.pack() on Lua 5.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Feb 2016 17:43:40 +0100 |
parents | 7185:5687788a2e4d |
children | 7187:3d2c2f0809ee |
files | util/iterators.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/iterators.lua Mon Feb 22 17:40:42 2016 +0100 +++ b/util/iterators.lua Mon Feb 22 17:43:40 2016 +0100 @@ -13,7 +13,7 @@ local t_insert = table.insert; local select, next = select, next; local unpack = table.unpack or unpack; --luacheck: ignore 113 -local function pack(...) return { n = select("#", ...), ... }; end +local pack = table.pack or function (...) return { n = select("#", ...), ... }; end -- Reverse an iterator function it.reverse(f, s, var)