summaryrefslogtreecommitdiff
path: root/luaextra-table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaextra-table.lua')
-rw-r--r--luaextra-table.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/luaextra-table.lua b/luaextra-table.lua
index 70a901e..e8f72ed 100644
--- a/luaextra-table.lua
+++ b/luaextra-table.lua
@@ -12,6 +12,7 @@ local concat, sort, insert, remove = table.concat, table.sort, table.insert, tab
local format, find, gsub, lower, dump, match = string.format, string.find, string.gsub, string.lower, string.dump, string.match
local getmetatable, setmetatable = getmetatable, setmetatable
local type, next, tostring, tonumber, ipairs, pairs = type, next, tostring, tonumber, ipairs, pairs
+local unpack = unpack or table.unpack
function table.strip(tab)
local lst = { }
@@ -28,7 +29,7 @@ end
function table.keys(t)
local k = { }
- for key,_ in next, t do
+ for key, _ in next, t do
k[#k+1] = key
end
return k