Tuples
The following code examples demonstrate the built-in tuple type offered by the language. See section [TBD] for details.
Type Declaration
Tuple Name: {Int, Int, Bool}.Tuple Name: {Int*2*, Bool}.Accessing
Retrieving
some tuple: {Int, Int, Bool} [1, 2, false];
some tuple (0) = 1some tuple: {Int, Int, Bool} [1, 2, false];
some tuple (0, 2) = {1, false}some tuple: {Int, Int, Bool} [1, 2, false];
some tuple (-1) = {false}some tuple: {Int, Int, Bool} [1, 2, false];
some tuple !(0) = {2, false}some tuple: {Int, Int, Bool} [1, 2, false];
some tuple (...) = {1, 2, 3} `Total collection accessor.`some tuple: {Int, Int, Bool} [1, 2, false];
some tuple ((0, 2]) = {2, false}Setting
Operators
Count
Difference (by Type Matching)
Equality
Setup
Approximate
Collective
Strict
Intersection (by Type Matching)
Union
Last updated