Skip to main content
Log in

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]): The IntTuple to check.

Returns:

True if the IntTuple is flat, False otherwise.