OpenMusic Reference
butlast
butlast
(lisp module) -- returns a list without its last n elements
Syntax
butlast list &optional num
Inputs
name | data type(s) | comments |
---|---|---|
list | a list | |
num | a non-negative integer | optional; defaults to 1 |
Output
output | data type(s) | comments |
---|---|---|
first | a list | returns the list truncated by num elements |
Description
This function copies all of list except the last n elements, and returns the new list.
n defaults to 1 and must be a non-negative integer. If list is shorter than n the empty list is returned. This function is non-destructive, meaning that list will not be modified.
Prev | Home | Next |
---|---|---|
bpf-sample | Up | callnext-method |