Tuple Literals

A tuple literal is an expression that defines a Tuple by providing a list of expressions, seperated by a comma (,) and surrounded by parenthesis (()). If assigned to a pre-defined tuple, the expressions neet to match in type; when used in combination with type inference in a var Statement, the individual types will be inferred.

var x := (15, 15, 12); // tuple of (Integer, Integer, Integer)
var y: tuple of (Double, Double, Double) := (1, 1, 5); // tuple of 3 double types.

See Also