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

size

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.