Algosim documentation: ∩

∩ (intersection)

Gives the intersection of two sets.

Syntax

Description

If A and B are sets, then A ∩ B is the intersection of A and B.

The operator is implemented by the intersection 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
{2, 4}

See also