Skip to main content
Log in

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 side IntTuple that will be modified (owned parameter).
  • rhs (IntTuple[origin]): The right-hand side IntTuple whose elements will be appended.

Returns:

A new IntTuple containing all elements from both tuples in sequence.