Lists (sometimes called Arrays in other languages) are structures that can hold up to 99 individual values. In TI-84-BASIC, Lists can only store Real or Complex values. In TI-89-BASIC, Strings as well as Real and Complex values can be stored in lists.
Lists can be dimensioned in this format:
To change an individual item in a list, the following construct is used:
To access an individual item in a list, the following construct is used:
(84) :listName(position) (89) :listName[position]
The size of a list can be accessed using the dim( command.
In TI-89, like all variables, any variable name can store a list.
L1 - L6 found on the keypad.
Custom lists can be defined in TI-basic. They all start with the L character, and can consist of up to 5 additional characters. They must start with a letter.
Use in programsEdit
High Score ListsEdit
One use for lists in game programs is to create a custom list and save high scores onto it. You can do this by adding it to the list and then deleting the extra at the bottom. (after the list is sorted)
In code, for LSCORE of size 10 and new score S, this is: