Language: Lua
Duration:
Difficulty:
Category: Programming
Certificate: Yes
What are Tables?
Importance of Tables in Lua's Data Structure
Tables: A Core Component of Lua's Flexibility
The Basics of Iteration in Lua
Understanding the pairs() Function
Iterating Over All Key-Value Pairs
Iterating Sequentially Over Arrays
Working with Multi-Dimensional Tables
Characteristics of Tables
Creating and Using Tables
Memory and Behavior of Tables
Table Metatables and Metamethods (Introduction)
Using Tables as Objects
Table Operations
What Are Arrays in Lua?
Declaring and Initializing Arrays
Sequential Indexing (1-based Indexing)
Accessing Array Elements
Adding, Removing, and Updating Elements in Arrays
Use Cases of Arrays
Setting Up the Inventory System
Implementing Core Features
Iterating Over Inventory Data
Advanced Features
Testing the Inventory System
What Are Dictionaries in Lua?
Key-Value Mapping Explained
Declaring and Initializing Dictionaries
Accessing, Updating, and Removing Key-Value Pairs
Handling Mixed Keys (Strings, Numbers, Tables as Keys)
Real-Life Examples of Dictionaries