Algosim documentation: ∆

∆ (symmetric difference)

Gives the symmetric difference of two sets.

Syntax

Description

If A and B are sets, then A ∆ B is the symmetric difference of A and B.

The operator is implemented by the SymmetricDifference function.

Examples

A ≔ { 1, 2, 3, 4, 5 }
{4, 5, 1, 2, 3}
B ≔ { 0, 2, 4, 6, 8, 10 }
{4, 6, 10, 2, 8, 0}
A ∆ B
{6, 10, 3, 5, 1, 8, 0}

See also