Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Sustituye puntos por "_" por E.g: table.insert -> table_insert
- do
- function flattenFunctionTree(tree, path)
- for name, value in pairs(tree) do
- if type(value) == "table" then
- flattenFunctionTree(value, path .. name .. "_")
- elseif type(value) == "function" then
- _G[path .. name] = value
- end
- end
- end
- local temp = {}
- for name, value in pairs(_G) do
- if value ~= _G then
- temp[name] = value
- end
- end
- flattenFunctionTree(temp, "")
- end
- local myTable = {"Ale es muy"}
- table_insert(myTable, "juapo")
- print(table_concat(myTable))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement