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

size

def size(a: IntTuple) -> Int

Calculate the total size (product of all elements) of an IntTuple.

This function computes the product of all integer values in the IntTuple, regardless of nesting level.

Args:

  • a (IntTuple): The IntTuple whose elements will be multiplied together.

Returns:

Int: The product of all elements in the IntTuple.

Was this page helpful?