OpenMusic Reference
nth
nth
(LISP function) -- returns the n th of a list
Syntax
nth n list
Inputs
name | data type(s) | comments |
---|---|---|
n | a non-negative integer | |
list | a list or tree |
Output
output | data type(s) | comments |
---|---|---|
first | any |
Description
This function returns the n th element of the list, where the car of the list is the ‘zeroth’.
![]() |
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 |
---|---|---|
mktree | Up | nthcdr |