mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-03-27 18:22:47 +01:00
Полноценная оконна ось, ебать!
This commit is contained in:
@@ -410,6 +410,23 @@ function table.size(t)
|
||||
return size
|
||||
end
|
||||
|
||||
function table.contains(t, object)
|
||||
for key in pairs(t) do
|
||||
if t[key] == object then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function table.indexOf(t, object)
|
||||
for i = 1, #t do
|
||||
if t[i] == object then
|
||||
return i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-------------------------------------------------- String extensions --------------------------------------------------
|
||||
|
||||
function string.readUnicodeChar(file)
|
||||
|
||||
Reference in New Issue
Block a user