Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 387 Bytes

File metadata and controls

31 lines (24 loc) · 387 Bytes

| (union)

Description

Returns a new set with elements from the set and the other set.

Syntax

set | other

other
A set object or expression evaluating to a set.

Return Value

set

Time Complexity

O(len(s)+len(t))

Example

>>> {1, 2} | {3, 4} | {4, 5}
set([1, 2, 3, 4, 5])

See also

#TODO