Create a list

list expression1 expression2
(list expression)
(list expression1 expression2 expression3 ...)

Creates a list which contains values of expressions as its elements. Two expressions are used by default, however a list of any number of elements (also empty list) can be created when instruction is enclosed in parentheses.


print (list 2 "abc [a b])


[2 abc [a b]]

See also:

sentence expression1 expression2 - list constructor

Table of Content