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).

congruent

congruent(a: IntTuple, b: IntTuple) -> Bool

Test if two IntTuples have the same hierarchical structure.

This function checks if two IntTuples have identical nesting patterns, regardless of the actual integer values they contain.

Args:

  • a (IntTuple): First IntTuple to compare.
  • b (IntTuple): Second IntTuple to compare.

Returns:

Bool: True if both IntTuples have the same hierarchical structure, False otherwise.