Is there anything way to append to a Tuple or create a new tuple with additional elements?

I can't find any documentation on the Tuple type. At least not on

From what I have seen there isn't any way to append directly into an existing tuple, but is there a way to compose a new tuple from either an array of elements or produce a new tuple with additional elements?

Indeed you can't append to an existing tuple, and composing a new tuple from an array of elements would require going through each element of the array and adding it to the tuple, which we can't. Maybe try looking into making a Result Builder (TupleBuilder)? That should give you more flexibility.

There's some low level shenanigans you can try:

Terms of Service

Privacy Policy

Cookie Policy