OpenMusic Reference
included?
included?
(sets module) -- returns true if all the elements of lst1 are also elements of lst2 . Otherwise, returns nil
Syntax
included? lst1 lst2 &optional test
Inputs
name | data type(s) | comments |
---|---|---|
lst1 | a list or tree | |
lst2 | a list or tree | |
test | a symbol, function name or lambda function | optional; the test with which to compare elements of the two lists. Defaults to equal |
Output
output | data type(s) | comments |
---|---|---|
first | t or nil |
Description
This box compares two lists, returning true if all the elements in the first are also elements of the second. If the optional test argument is added (the default value is equal ), the lists are compared globally according to this predicate instead. For example, if the predicate is > , the module returns true if all elements in lst1 are greater than at least one element in the second.
Prev | Home | Next |
---|---|---|
group-list | Up | infocanons |