July 2018
Beginner
202 pages
5h 42m
English
An array is a contiguous chunk of memory; some programming languages guarantee that the memory will be contiguous. In Lua, an array might use a linear chunk of memory if the following apply:
For now, assume that an array is defined as a table that is indexed only numerically, starting with index 1. By this definition, the following code demonstrates how to use a table as an array:
arr = {}arr[1] = ...Read now
Unlock full access