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

Mojo function

is_flat

def 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.

Was this page helpful?