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): TheIntTuplewhose elements will be multiplied together.
Returns:
Int: The product of all elements in the IntTuple.