Tuple functions
Reference documentation for Expressif functions in the tuple scope.
| Name | Overview |
|---|---|
apply | Evaluates an expression with the input tuple as its positional context. |
arity | Returns the number of positional elements in the input tuple. |
extend | Returns a new tuple with all positions from another tuple appended. |
pick | Returns a tuple containing selected positions in the requested order. |
swap | Returns a tuple with two positions exchanged, defaulting to the first and last positions. |
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. |