Skip to content

set_difference

Syntax

set_difference(list-expression-1, list-expression-2)

Parameters

list-expression-1
First of two lists whose difference is being taken.
list-expression-2
Second of two lists whose difference is being taken.

Returns

Returns a list of unique items that occur in first list but not in second list, sorted in increasing order.

Description

Returns a list of unique items that occur in the first list but not in the second list.

Examples

The following returns a list containing the values [1,2,3]:

set_difference(list(1,2,3,4,5), list(0,4,5,6))

See Also