diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-03-28 14:34:44 +0200 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-03-28 14:34:44 +0200 |
commit | 0bb6d1e8d28f914398d3b3de15cf5317f480d02a (patch) | |
tree | a222ca028b0f3bec9f4057424623323602174c29 /luaextra-table.lua | |
parent | 7047b46b6fe6dead388c8427a7510710f920b617 (diff) | |
parent | 22fa4cc9381179fdd43ca8a251cb49dd2703079d (diff) | |
download | lualibs-0bb6d1e8d28f914398d3b3de15cf5317f480d02a.tar.gz |
Merge remote branch 'github/master'
Diffstat (limited to 'luaextra-table.lua')
-rw-r--r-- | luaextra-table.lua | 3 |
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 |