summaryrefslogtreecommitdiff
path: root/luaextra-table.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-22 17:49:04 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-22 17:49:04 +0200
commit22fa4cc9381179fdd43ca8a251cb49dd2703079d (patch)
treea222ca028b0f3bec9f4057424623323602174c29 /luaextra-table.lua
parent87f7676bed961c8de29cc7fd2bebb41fe106f678 (diff)
downloadlualibs-22fa4cc9381179fdd43ca8a251cb49dd2703079d.tar.gz
Sync with ConTeXt
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