listlib::setDifference --
remove elements from a list
Introductionlistlib::setDifference(list1, list2)
removes all elements from list1, that are given by
list2.
Call(s)listlib::setDifference(list1, list2)
Parameterslist1, list2 |
- | a MuPAD list |
Returnsthe first list without all elements of the second list
Related
Functions
Detailslistlib::setDifference removes all elements of the
list list1 given by the second list
list2.The order of the list is not preserved.
Example
1listlib::setDifference removes
2, 4, 6 and 8 from
the given list:
>> listlib::setDifference([1, 2, 3, 4, 5, 6, 7, 8], [2, 4, 6, 8])
[7, 5, 3, 1]
listtools::setDifference