Type:
LIST: object x object times ... -> list
Call syntax:
LIST(obj_1,
obj_2, ...)
(obj_1,
obj_2, ...)
Description:
The constructor function LIST
returns a list containing
the objects obj_1,
obj_2, ... as its element.
When called without arguments, LIST
returns the empty list.
The abbreviated form (obj_1,
obj_2, ...)
can be used synonymously, whenever the list to be constructed
contains less or more than one element.
Attention!
The abbreviated form (obj_1,
obj_2, ...)
cannot be used for constructing one-element lists, because
(obj) is semantically equivalent to
obj
Example:
> LIST(1,2,3)
Result= LIST(1,2,3)
> (1,2,3)
Result= LIST(1,2,3)
> LIST(1)
Result= LIST(1)
> (1)
Result= 1
> LIST()
Result= LIST()
> ()
Result= LIST()
See also: LISTINIT, consList, putList, getList, inList.