Mojo function
tuple_max
tuple_max(t: IntTuple[origin]) -> Int
Calculate the maximum value in an IntTuple
.
This function recursively finds the maximum integer value
in a potentially nested IntTuple
structure.
Args:
- t (
IntTuple[origin]
): TheIntTuple
to search.
Returns:
The maximum integer value found in the tuple.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!