Compositions

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

Type Declaration

Specific Composition Name: Composition.
`Declare a composition that can only contain up to the specified types.`

Constrained Composition Name A: {Context A, Context B}.
Constrained Composition Name B: {Context A, Context B, Context B}.
Constrained Composition Name C: {Context A, {*Context B*}}.

Operators

Accessing

Containment

some composition: Composition [context a, context b];

`Index checks.`
some composition(0?) = true
some composition(1?) = false

`ID checks.`
some composition(context a id?) = true
some composition(context c id?) = false

Retrieving

Difference (Remove Elements)

Expansion

Intersection

Reduction

Union (Appending)

As Variables

Assignment

Declaration

Last updated