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

concat

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.