Chapter 5 - Advanced Functions and Control Structures
Errata
Table of Contents
Advanced Functions and Control Structures - 65
- Multiple Return Values - 65
- Converting Hex to RGB - 65
- Assigning Multiple Values - 66
- Missing Return Values? - 67
- Multiple Return Values in World of Warcraft - 67
- Accepting a Variable Number of Arguments - 69
- Declaring a Vararg Function - 69
- Using select() with ... - 70
- Generic for Loops and Iterators - 71
- Syntax of Generic for - 72
- Traversing the Array Part of a Table - 72
- Traversing an Entire Table - 73
- Clearing a Table - 74
- Using Other Iterators - 74
- Sorting an Array of Table Data - 74
- Define Example Data - 75
- Default Sort Order - 75
- Creating a Comparison Function - 75
- Creating a More Complex Sort Function - 76
- Summary - 77