Tuple functions
Reference documentation for Expressif functions in the tuple scope.
| Name | Overview |
|---|---|
arity | Returns the number of positional elements in the input tuple. |
bind | Invokes a named callable using the first tuple position as pipeline input and the remaining positions as already-evaluated argument values. |
extend | Returns a new tuple with a value appended, expanding tuple values into their positions. |
label | Returns a flat record by assigning one positional label to each tuple item and qualifying every field expanded from a record item. |
label-conflicts | Returns a flat record whose expanded record fields receive positional labels only when their unqualified names conflict. |
pick | Returns a tuple containing selected positions in the requested order. |
rotate | Returns a tuple with its positions rotated cyclically, preserving arity and item values, including nulls. |
swap | Returns a tuple with two positions exchanged, defaulting to the first and last positions. |
tuple | Constructs a new tuple by evaluating zero or more positional expressions from left to right against the same input. Spread arguments expand array values in place. |
tuple-at | Returns the tuple field at the specified zero-based position. Returns null when the input is not a tuple or the position is out of range. |
tuple-first | Returns the first field of a tuple. Returns null when the input is not a tuple. |
tuple-second | Returns the second field of a tuple. Returns null when the input is not a tuple. |