Lua – Metatables
in this chapter we will discuss about Lua - Metatables. A metatable is a table that helps in modifying the behavior of a table it is attached to with the…
in this chapter we will discuss about Lua - Metatables. A metatable is a table that helps in modifying the behavior of a table it is attached to with the…
What is a Module? In this chapter we will discuss about Lua - Module. Module is like a library that can be loaded using require and has a single global name containing…
Introduction Tables are the only data structure available in Lua that helps us create different types like arrays and dictionaries. Lua uses associative arrays and which can be indexed with…
Iterator is a construct that enables you to traverse through the elements of the so called collection or container. In Lua, these collections often refer to tables, which are used…
Arrays are ordered arrangement of objects, which may be a one-dimensional array containing a collection of rows or a multi-dimensional array containing multiple rows and columns. In Lua, arrays are…
In this chapter we will discuss about Lua - String. String is a sequence of characters as well as control characters like form feed. String can be initialized with three…
A function is a group of statements that together perform a task. You can divide up your code into separate functions. How you divide up your code among different functions…
In this chapter we will discuss about Lua - Decision Making. Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the…
Here we discuss about Lua - Loops. There may be a situation when you need to execute a block of code several number of times. In general, statements are executed…
An operator is a symbol that tells the interpreter to perform specific mathematical or logical manipulations. Lua language is rich in built-in operators and provides the following type of operators…