Tuple Type

A tuple is a sequence of values. Each value can be represented using double precision floating point numbers, allowing the definition of integral and fractional values, or a string.

A Tuple's most common role is representing a table row's key — or, for a table with more than one key column, the full chain of keys identifying a row or sub-table. Get Table Value and Get Table Row both take one to identify which row to read from a Table; Get Table From Key and Set Table By Key use one the same way to read or write an entire sub-table by its leftmost key(s); and Get Table Row's own output is itself a Tuple — the row's key followed by every value column, in order. See Manipulating Tables and Lookup Tables for the full functor catalog built around this pattern, including Add Tuple Value, Get Tuple Size, and Get Tuple Value for building and reading Tuples directly.

GUI Editor

Graphical representation of the tuple editor

The tuple editor lets you enter a sequence of numbers and strings.

EGO Script

Tuples are sequences of values enclosed by [ ]. Each value is represented by a real number or a string:

[
  "Amazon", 2012, 65437, 0.0342, "North"
]

A tuple can be any length.

Automatic Conversions

  • Converted to: None.

See Type System for the complete conversion reference across all types.