Sets

The following code examples demonstrate the built-in set type offered by the language. See section [TBD] for details.

Type Declaration

Set Name: {*Int}.

Accessing

Containment

some set: {*Int} [1, 2, 3];
some set(1?) = true
some set(4?) = false
some set: {*Int} [1, 2, 3];
some set(1?, 4?) = {true, false}

Retrieving

some set: {*Int} [1, 2, 3];
some set(...) = {1, 2, 3}  `Total collection accessor.`

Operators

Count

Difference (Remove Elements)

Equality

Setup

Approximate

Strict

Intersection

Union (Appending)

Last updated