Mojo function
congruent
congruent(a: IntTuple[origin], b: IntTuple[origin]) -> Bool
Test if two IntTuple
s have the same hierarchical structure.
This function checks if two IntTuple
s have identical nesting patterns,
regardless of the actual integer values they contain.
Args:
- a (
IntTuple[origin]
): FirstIntTuple
to compare. - b (
IntTuple[origin]
): SecondIntTuple
to compare.
Returns:
True if both IntTuple
s have the same hierarchical structure, False otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!