parsav  Diff

Differences From Artifact [c72e0a0971]:

To Artifact [c868f8cd22]:


    74     74   return {
    75     75   	exec = exec;
    76     76   	dump = dump;
    77     77   	ping = ping;
    78     78   	chomp = chomp;
    79     79   	map = map;
    80     80   	tobool = tobool;
           81  +	find = function(lst,pred)
           82  +		for k,v in pairs(lst) do
           83  +			local test = pred(v,k) 
           84  +			if test then return test end
           85  +		end
           86  +		return nil
           87  +	end;
    81     88   	rndstr = function(len)
    82     89   		local s = ''
    83     90   		for i=1,len do
    84     91   			local ofs = math.random(0,10 + 26)
    85     92   			if ofs >= 10 then ofs = 0x60 + (ofs - 10)
    86     93   						 else ofs = 0x30 + ofs end
    87     94   			s = s .. string.char(ofs)