From WikiTI
Jump to: navigation, search

Lists are able to store up to 999 real/complex values. TIOS includes 6 lists be default, L1-L6, that have special tokens. These tokens are secondary functions on the number keys. A user or a TI-Basic program can create custom lists by prefacing a name with "L." For example: LTEST. List names are always all caps, and are up to 5 characters long.

Attaching Strings

Lists may have strings "attached" to them by inputting (either from the homescreen or a program) "string"/->/LLIST. The string is a executable statement (such as one that may be entered at the homescreen) that will be applied to the list.

Storing to Lists

Lists are defined with the "{}" characters. These characters are used like so: {0,1,2} This defines a list whose first element is 0, the second is 2, and so on. Note that the closing "}" is not required. You can have up to 999 values in a single list. To store to a list, simply store to it like you would a real/complex value using the /->/ symbol: {0,1,2}/->/L1 Again, note the closing "}" is optional. You can access or modify individual values from the list with the "()" symbols: L1(1) Which will retrieve the first value, that can be used exactly the same way as a real/complex value.

Programming Signifigance

Lists are extremely useful in programming because TIOS only allows 25 real/complex values. Using lists, a TI-Basic program may use as many real/complex values as they like.