Skip to main content

Sets

FunctionDescriptionMeta
x & y

x & y

Returns the intersection of two sets.

Arguments:
x (set[any])

the first set

y (set[any])

the second set

Returns:
z (set[any])

the intersection of x and y

Wasm
intersection

y := intersection(xs)

Returns the intersection of the given input sets.

Arguments:
xs (set[set[any]])

set of sets to intersect

Returns:
y (set[any])

the intersection of all xs sets

Wasm
x - y

x - y

Minus subtracts the second number from the first number or computes the difference between two sets.

Arguments:
x (any<number, set[any]>)
y (any<number, set[any]>)
Returns:
z (any<number, set[any]>)

the difference of x and y

Wasm
x | y

x | y

Returns the union of two sets.

Arguments:
x (set[any])
y (set[any])
Returns:
z (set[any])

the union of x and y

Wasm
union

y := union(xs)

Returns the union of the given input sets.

Arguments:
xs (set[set[any]])

set of sets to merge

Returns:
y (set[any])

the union of all xs sets

Wasm