Mojo function
concat
concat(var lhs: IntTuple[origin], rhs: IntTuple[origin]) -> IntTuple
Concatenates two IntTuple instances into a single IntTuple.
This function appends all elements from the right-hand side tuple to the left-hand side tuple, creating a new combined tuple. The operation preserves the hierarchical structure of both tuples.
Args:
- lhs (
IntTuple): The left-hand sideIntTuplethat will be modified (var parameter). - rhs (
IntTuple): The right-hand sideIntTuplewhose elements will be appended.
Returns:
IntTuple: A new IntTuple containing all elements from both tuples in sequence.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!