IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

is_flat

is_flat(t: IntTuple) -> Bool

Check if an IntTuple is flat.

This function checks if the IntTuple is flat, meaning it has no nested elements.

Args:

  • t (IntTuple): The IntTuple to check.

Returns:

Bool: True if the IntTuple is flat, False otherwise.