Skip to content

union

Syntax

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

Parameters

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

Returns

Returns a list of unique items that occur in both lists, sorted in increasing order.

Description

Returns a list of unique items that occur in either of two lists, sorted in increasing order.

Examples

The following returns a list containing 0,1,2,3,4,5,6:

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

See Also