OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


nthcdr

nthcdr

(LISP function) -- returns list without its first n elements

Syntax

nthcdr 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 a tree  

Description

This function performs the operation [_ cdr ](glossary#CDR) _n times on list and returns the result. The effect is that the first n elements are removed.

Note 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
nth Up nth-random