Builds a list from single items. All items must be of the same type, the resulting list is a list of items of that type.
list(item1:any type, item2:any type, itemN:any type) -> list |
Name |
Type |
Description |
---|---|---|
item1 |
any type |
Specifies a single item. Subsequent items must be separated by a comma. |
item2 |
any type |
Same as above |
itemN |
any type |
Same as above. |
The following expression returns the list [1, 2, 3]. All list items are of numeric type:
list(1,2,3) |
The following expression returns the list ['a', 'b', 'c']. All list items are of string type:
list('a','b','c') |