This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Tuple Type ====== A [[wp>Tuple|tuple]] is a sequence of values. Each value can be represented using double precision [[wp>Floating_point|floating point numbers]], allowing the definition of integral and fractional values, or a [[wp>String_(computer_science)|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 Type|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 ===== [{{ :editors:tuple_editor.png?nolink |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: <code> [ "Amazon", 2012, 65437, 0.0342, "North" ] </code> A tuple can be any length. ===== Automatic Conversions ===== * **Converted from**: [[Real Value Type]], [[Integer Value Type]], [[Non Negative Integer Value Type]], [[Positive Integer Value Type]], [[Name Type]], [[String Type]], and [[Table Value Type]]. * **Converted to**: None. See [[type_system|Type System]] for the complete conversion reference across all types.