Mojo function
size
size(a: IntTuple[origin]) -> 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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!