OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


reverse

reverse

(LISP function) -- returns sequence backwards

Syntax

reverse sequence

Inputs

name data type(s) comments
sequence a list or tree  

Output

output data type(s) comments
first a tree  

Description

This function returns a new list with the elements of sequence reversed. The original sequence is not modified. reverse does not reverse elements in sublists.

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
rest Up rotate