Skip to content

Sets

Combine and compare sets.

setintersection

setintersection(sets...) → set

Return elements common to all given sets.

ParameterTypeDescription
sets...setVariadic.

setproduct

setproduct(sets...) → set(tuple)

Compute the Cartesian product of the given sets.

ParameterTypeDescription
sets...setVariadic.

setsubtract

setsubtract(a, b) → set

Return elements in the first set that are not in the second.

ParameterTypeDescription
aset
bset

setunion

setunion(sets...) → set

Return the union of all given sets.

ParameterTypeDescription
sets...setVariadic.