mirror of
https://github.com/kepler155c/opus
synced 2025-12-18 14:18:06 +00:00
treefarm + turtle improvements + cleanup
This commit is contained in:
@@ -243,6 +243,15 @@ function Util.size(list)
|
||||
return 0
|
||||
end
|
||||
|
||||
function Util.removeByValue(t, e)
|
||||
for k,v in pairs(t) do
|
||||
if v == e then
|
||||
table.remove(t, k)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Util.each(list, func)
|
||||
for index, value in pairs(list) do
|
||||
func(value, index, list)
|
||||
|
||||
Reference in New Issue
Block a user