Mojo function
is_flat
is_flat(t: IntTuple[origin]) -> Bool
Check if an IntTuple
is flat.
This function checks if the IntTuple
is flat, meaning it has no nested
elements.
Args:
- t (
IntTuple[origin]
): TheIntTuple
to check.
Returns:
True if the IntTuple
is flat, False otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!