Create Lists

You create a list by enclosing a list of expressions in brackets [ ] or by calling a primitive that returns a list. For example:

[1,2,3,4,5]
["Pi",3.1415]
[[1,2,3,4,5],["Pi",3.1415]]

You can use the Range operator to create a list of consecutive integers. The expression 1..5 is the same as [1,2,3,4,5]. You can also use primitives such as makelist.

makelist(f(x),x,1,5)

See Range.

See makelist.

See Work with Lists.