This commit is contained in:
2022-05-18 13:20:48 -04:00
parent 6bbad70264
commit 608f7fe6d6
2 changed files with 163 additions and 67 deletions

View File

@@ -27,3 +27,24 @@ function login.cb_uglytimedaemon()
end
function time() return ug.get('time') end
function isa(k1,k2)
if k1==k2 then return true end
if k1==nil then return false end
local mt=getmetatable(k1)
if not mt then return false end
return isa(mt.__index,k2)
end
function tabcat(t1,t2)
for i=1,#t2 do t1[#t1+1]=t2[i] end
end
function multistart(filter,closure)
local lis=tangible.scan('nowhere',0,0,1000000000,false)
lis=tabcat(lis,tangible.scan('main',0,0,1000000000,true)
for _,t in iparis(lis) do if filter(t) then closure(t) end end
end