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

congruent

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

Was this page helpful?