OpenMusic Reference
cons
cons
(LISP function) -- returns a list
Syntax
cons x list-or-thing
Inputs
name | data type(s) | comments |
---|---|---|
x | any | |
list-or-thing | any |
Output
output | data type(s) | comments |
---|---|---|
first | a list or tree |
Description
This function allocates a new cons cell whose car is x and whose cdr is list-or-thing . If you’re just looking to create a list, use list .
![]() |
LISP functions |
---|---|
The basic LISP functions are too numerous to document comprehensively in this manual. As an aid to the neophyte, the most commonly used have been included in this documentation, but they represent a small fraction of the total functionality of the MCL environment. Numerous on-line resources exist, for instance the online version of Common Lisp the Language, 2nd Edition.
Prev | Home | Next |
---|---|---|
conditional | Up | cos |