Состав стандартной библиотеки


Стандартная библиотека Lua включает в себя модули:

* math
* string
* table
* io
* os

-- Math functions:

math.abs, math.acos, math.asin, math.atan, math.atan2,
math.ceil, math.cos, math.cosh, math.deg, math.exp, math.floor,
math.fmod, math.frexp, math.huge, math.ldexp, math.log, math.log10,
math.max, math.min, math.modf, math.pi, math.pow, math.rad,
math.random, math.randomseed, math.sin, math.sinh, math.sqrt,
math.tan, math.tanh

-- String functions:

string.byte, string.char, string.dump, string.find, string.format,
string.gfind, string.gsub, string.len, string.lower, string.match,
string.rep, string.reverse, string.sub, string.upper

-- Table functions:

table.concat, table.insert, table.maxn, table.remove, table.sort

-- IO functions:

io.close , io.flush, io.input, io.lines, io.open, io.output, io.popen,
io.read, io.stderr, io.stdin, io.stdout, io.tmpfile, io.type, io.write,
file:close, file:flush, file:lines ,file:read,
file:seek, file:setvbuf, file:write

-- OS functions:

os.clock, os.date, os.difftime, os.execute, os.exit, os.getenv,
os.remove, os.rename, os.setlocale, os.time, os.tmpname