2021-11-14 16:38:07 +00:00
|
|
|
require("./getRoot")
|
|
|
|
require("./forEach")
|
|
|
|
require("./strings")
|
|
|
|
require("./userRequire")
|
|
|
|
require("./lookupCmdArgs")
|
|
|
|
require("./fatal")
|
|
|
|
require("./eval")
|
|
|
|
require("./isArray")
|
|
|
|
require("./concatArrays")
|
|
|
|
require("./base64")
|
|
|
|
require("./requireAbs")
|
|
|
|
require("./merge")
|
|
|
|
require("./settings")
|
2022-01-17 19:40:31 +00:00
|
|
|
require("./contains")
|
|
|
|
|
|
|
|
function table.copy(t)
|
|
|
|
local u = { }
|
|
|
|
for k, v in pairs(t) do u[k] = v end
|
|
|
|
--setmetatable(u, getmetatable(t))
|
|
|
|
return u
|
2022-03-06 15:17:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function auMap(array, func)
|
|
|
|
local tbl = {}
|
|
|
|
auForEach(array, function(value)
|
|
|
|
table.insert(tbl, func(value))
|
|
|
|
end)
|
|
|
|
return tbl
|
2022-01-17 19:40:31 +00:00
|
|
|
end
|