Skip to main content

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

Returns:

Int: The maximum integer value found in the tuple.

Was this page helpful?