You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

complement()

Usage

complement(sourceList, removeObjects...)

Description
Returns the result of removing the removeObjects from sourceList. If an object in the list of removeObjects 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]

Search results for "complement()"

complement()

Returns the result of removing the removeObjects from sourceList.

complement(sourceList, removeObjects...)