Software /
code /
prosody
Comparison
util/iterators.lua @ 12590:5eaf77114fdb
compat: Use table.pack (there since Lua 5.2) over our util.table
Added in d278a770eddc avoid having to deal with its absence in Lua 5.1.
No longer needed when Lua 5.1 support is dropped.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 11 Jul 2022 19:15:24 +0200 |
parent | 12589:39ae08180c81 |
child | 12744:e894677359e5 |
comparison
equal
deleted
inserted
replaced
12589:39ae08180c81 | 12590:5eaf77114fdb |
---|---|
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; | 15 local unpack = table.unpack; |
16 local pack = table.pack or require "util.table".pack; | 16 local pack = 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 |