>> make tuple! [1 2 3] == 1.2.3
tuple! datatype is used to represent rgb and rgba color values, ip addresses, and version numbers.
tuple! must have at least two decimal points and the digits must be positive integers in the range
0 - 255.
Tuple! is a member of the following typesets:
2. Literal syntax
A sequence of three to twelve positive integers separated by decimal points.
Tuple values can be created using literal syntax, or at runtime by using a
make constructor or
>> to tuple!  == 42.0.0 >> to tuple! [1 2 3] == 1.2.3
All comparators can be applied on
=, ==, <>, >, <, >=, <=, =?. In addition,
max are also supported.
max when applied to two
tuple! arguments require tuples of the same size.
>> min 1.2.3 4.5.6 == 1.2.3 >> max 1.2.3 4.5.6 == 4.5.6
mod can be used with
If the result of the arithmetic falls outside of the range
0 - 255, the result will be cut off at
>> gray == 128.128.128 >> gray * 2 == 255.255.255
6. Testing values
tuple? to check if a value is of the
>> tuple? 1.2.3 == true
type? to return the datatype of a given value.
>> type? 1.2.3 == tuple!
7. Predefined words