OpenMusic Reference
x-append
x-append
(lists module) -- combines two or more lists into a single one
Syntax
x-append l1? l2? &rest lst?
Inputs
name | data type(s) | comments |
---|---|---|
l1? | any | |
l2? | any | |
lst? | any | optional; additional lists to combine |
Output
output | data type(s) | comments |
---|---|---|
first | a tree |
Description
Combines the lists in the order input into one new list. The module removes on level of parentheses from the lists during the merge. Compare with the list function. See examples, below.
Examples
Appending a list to another
This appends (1 2) to (a b), removing a level of parentheses, with the result
? OM->(1 2 a b)
Compare with the list function, which does not remove parentheses, performed on the same data:
? OM->((1 2) (a b))
Prev | Home | Next |
---|---|---|
volume | Up | x-diff |