List data type

A collection of values of any type.

Access by index

A value contained in the list can be returned using the syntax list[index] where index is a number starting from zero.

If the index does not exist a template error will occur.

Methods

Name Description Return type
Bottom Returns a specified number of elements at the bottom of the list. List
First Returns the first element's value in the list. Any type
Last Returns the last element's value in the list. Any type
Length Returns the number of elements. Number
Reverse Reverses the order of the elements in the list. List
Shuffle Randomises the order of the elements in the list. List
Top Returns a specified number of elements at the top of the list. List