Lua – File I/O
In this topic we will discuss about Lua - File I/O. I/O library is used for reading and manipulating files in Lua. There are two kinds of file operations in…
In this topic we will discuss about Lua - File I/O. I/O library is used for reading and manipulating files in Lua. There are two kinds of file operations in…
Introduction In this chapter we will discuss about Lua - Coroutines. Coroutines are collaborative in nature, which allows two or more methods to execute in a controlled manner. With coroutines,…
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…