====== Get Table Keys ====== ===== Description ===== This functor returns a table containing only the first column of keys. ===== Inputs ===== ^ Name ^ Type ^ Description ^ | Table | [[Table Type|Table]] | The input table. | ===== Outputs ===== ^ Name ^ Type ^ Description ^ | Keys | [[Table Type|Table]] | The table containing the keys from the input table first key column. | ===== Group ===== [[Functor List#Table|Table]] ===== Notes ===== The result table has columns "Key*" and "Value" and both columns contain the same values. The column types are the same types of the first key column from the input table. **Example 1:** Input: ^ Key1* ^ Key2* ^ Value1 ^ Value2 ^ |@lightgreen: 1 | 2 | 2.2 | 3.1 | |@lightgreen: 1 | 3 | 2.1 | 3.1 | |@lightgreen: 1 | 6 | 1.2 | 4.2 | |@lightgreen: 2 | 2 | 3.2 | 6.1 | Result: ^ Key* ^ Value ^ |@lightgreen: 1 |@lightgreen: 1 | |@lightgreen: 2 |@lightgreen: 2 | **Example 2:** Input: ^ Name* ^ Age* ^ Value1 ^ Value2 ^ |@lightgreen: "Hermann" | 28 | 2.2 | 3.1 | |@lightgreen: "Romulo" | 12 | 2.1 | 3.1 | |@lightgreen: "Bruno" | 61 | 1.2 | 4.2 | |@lightgreen: "Danilo" | 25 | 3.2 | 6.1 | Result: ^ Key* ^ Value ^ |@lightgreen: "Hermann" |@lightgreen: "Hermann" | |@lightgreen: "Romulo" |@lightgreen: "Romulo" | |@lightgreen: "Bruno" |@lightgreen: "Bruno" | |@lightgreen: "Danilo" |@lightgreen: "Danilo" | ===== Internal Name ===== GetTableKeys