Mojo function
concat
concat(owned 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[origin]
): The left-hand sideIntTuple
that will be modified (owned parameter). - rhs (
IntTuple[origin]
): The right-hand sideIntTuple
whose elements will be appended.
Returns:
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!