Type:
consList: object x list -> list
Call syntax:
consList(newObject,
aList)
Description:
Returns a list with head (first element) newObject
and tail aList.
consList is a constructor function for type list
which allows successive construction of lists.
It is executed considerably faster than the equivalent form
LIST(newObject) + aList.
Example:
> consList(1,LIST())
Result= LIST(1)
> consList(1,consList(2,LIST()))
Result= LIST(1,2)
See also: LIST, LISTINIT, putList, getList, inList.