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

weakly_congruent

def weakly_congruent(a: IntTuple, b: IntTuple) -> Bool

Test if two IntTuples have similar hierarchical structures.

This function establishes a partial order relation between IntTuples based on their hierarchical structure. It's less strict than congruent.

Args:

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

Returns:

Bool: True if a's structure is compatible with b's structure, False otherwise.

Was this page helpful?