adde /proc fs and working on install

This commit is contained in:
2026-03-10 09:17:21 -04:00
parent f12159bfb9
commit 12669d9f82
5 changed files with 199 additions and 27 deletions

View File

@@ -173,6 +173,27 @@ function table.indexOf(t, value)
return -1
end
function table.merge(...)
local args={...}
local out = {}
local outi = {}
for _,t in ipairs(args) do
for i,v in pairs(t) do
out[i]=v
end
for i,v in ipairs(t) do
outi[#outi+1]=v
end
end
for i,v in ipairs(outi) do
out[i]=v
end
return out
end
function string.replace(s, target, repl)
local result = {}
local i = 1