Global Functions
function type(obj: any): stringfunction tonumber(s: string, base: number?): number?function tostring(obj: any): stringfunction print(args: ...any)function assert<T>(value: T, message: string?): Tfunction error(obj: any, level: number?)
function getmetatable(obj: any): table?function setmetatable(t: table, mt: table?)
function pcall(f: function, args: ...any): (boolean, ...any)function xpcall(f: function, e: function, args: ...any): (boolean, ...any)
function newproxy(mt: boolean?): userdata
function rawget<K, V>(t: { [K]: V }, k: K): V?function rawset<K, V>(t: { [K] : V }, k: K, v: V)function rawlen<K, V>(t: { [K]: V } | string): numberfunction rawequal(a: any, b: any): boolean
function next<K, V>(t: { [K]: V }, i: K?): (K, V)?function select<T>(i: string, args: ...T): numberfunction select<T>(i: number, args: ...T): ...Tfunction ipairs(t: table): <iterator>function pairs(t: table): <iterator>function unpack<V>(a: {V}, f: number?, t: number?): ...VEquivalent to table.unpack
Removed
Section titled “Removed”function gcinfo(): numberfunction getfenv(target: (function | number)?): tablefunction setfenv(target: function | number, env: table)