List Literal Operator

You can create lists explicitly by placing a series of values, separated by commas, in brackets [ ]. The definition

List:=[1,2,3,4,5,6]

assigns a list of the six values from 1 to 6 to the node named List. You do not have to specify individual data elements as literals; you can use formulas of any complexity instead. The following definition generates the same list as above:

List:=[1,1+1,6/2,2*2,sqrt(25),6]

Lists can include any number of elements and any type of data. You can mix numbers, text strings, and Boolean values in the same list. There is also no limit on how many elements can be in a list (within the memory constraints of your computer) or what types of elements can coexist in the same list. Lists can even contain other lists as elements to construct multidimensional matrices and relational databases.

See Create Lists.