[Contents] · [Home] · [Mail]

SALIERI Language - consList

consList: object x list -> list

Call syntax:
consList(newObject, aList)

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.

> consList(1,LIST())
Result= LIST(1)
> consList(1,consList(2,LIST()))
Result= LIST(1,2)

See also: LIST, LISTINIT, putList, getList, inList.

[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.