Build/Utilities/Utilities.lua

29 lines
596 B
Lua
Raw Normal View History

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")
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
end