Algosim documentation: {}

{} (set brackets)

Creates a set.

Syntax

Description

The set brackets {} denote a set. They are implemented by the set 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, 2, 3, 4, 5, 1, 8, 0}
{} = ∅
true

See also