Skip to main content
Log in

Mojo function

congruent

congruent(a: IntTuple[origin], b: IntTuple[origin]) -> 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[origin]): First IntTuple to compare.
  • b (IntTuple[origin]): Second IntTuple to compare.

Returns:

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