mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-18 06:43:13 +09:00
Fixed table.to_string
This commit is contained in:
1 parent
e5ddd3586a
commit
072f02716b
2 files changed
+13
-6
No files matched your search
@@ -57,6 +57,7 @@ function table.key_to_str ( k )
|
||||
end
|
||||
|
||||
function table.to_string( tbl )
|
||||
if not type(tbl) == 'table' then return {tostring(tbl)} end
|
||||
local result, done = {}, {}
|
||||
for k, v in ipairs( tbl ) do
|
||||
table.insert( result, table.val_to_str( v ) )
|
||||
|
||||
Reference in new issue
Block a user