Skip to main content
Log in

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]): The IntTuple to search.

Returns:

The maximum integer value found in the tuple.