OpenMusic Reference
create-list
create-list
(lists module) -- Returns a list of count instances of elem
Syntax
create-list count elem
Inputs
name | data type(s) | comments |
---|---|---|
count | a non-negative integer. defaults to 10 | |
elem | any |
Output
output | data type(s) | comments |
---|---|---|
first | a list or tree |
Description
Constructs a list with count repetitions of whatever is given at the elem input. If count is set to 0, nil is returned.
Examples
Creating a repeating list
Returns:
? OM->((a 2) (a 2) (a 2) (a 2) (a 2))
Prev | Home | Next |
---|---|---|
cos | Up | ctrlchg |