complement()
Usage
complement(sourceList, removeObjects...)
Description
Returns the result of removing the removeObjects
from sourceList
. If an object in the list of removeObject
s is a list, all elements of these lists are removed from the sourceList
.
Note
All occurrences of a removeObject
in the sourceList
(see example 3)
Examples
(1) ${complement(merge(3, 4, 2, 1, 5, 6), 5, 1, 3)}
(2) ${complement(merge(1, 2, 7, 4, 5, 6, 7, 8, 9), 1, merge(9, 7, 5), 3, merge(4, 6))}
(3) ${complement(merge(1, 2, 1), 1)}
results in
(1) [2.0, 4.0, 6.0]
(2) [2.0, 8.0]
(3) [2.0]