IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

concat

def concat(var lhs: IntTuple, rhs: IntTuple) -> 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 side IntTuple that will be modified (var parameter).
  • rhs (IntTuple): The right-hand side IntTuple whose elements will be appended.

Returns:

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

Was this page helpful?