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:
Returns:
Bool
: 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!