OpenMusic Reference
remove
remove
(LISP function) -- returns a list with certain items removed
Syntax
remove item sequence &optional &key :count :start :end :from-end :test :test-not :key
Inputs
name | data type(s) | comments |
---|---|---|
item | any | |
sequence | a tree |
Output
output | data type(s) | comments |
---|---|---|
first | a list or tree |
Description
Returns a new sequence with occurences of item removed. remove only processes the first level of the list; sublists are not processed unless they themselves are equivalent to item . The original sequence is not modified. The destructive counterpart of remove is delete .
The functions list-filter and table-filter provide more flexible ways of removing elements from lists.
![]() |
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 |
---|---|---|
reduce-tree | Up | remove-dup |