IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

tuple_min

def tuple_min(a: IntTuple, b: IntTuple) -> IntTuple

Compute the element-wise minimum of two IntTuples.

This function compares corresponding elements of two IntTuples and returns a new IntTuple containing the minimum value at each position.

Aborts: If the input tuples have different lengths.

Note: If either input contains UNKNOWN_VALUE, the result will be UNKNOWN_VALUE.

Args:

Returns:

IntTuple: A new IntTuple with each element being the minimum of the corresponding elements in a and b.

Was this page helpful?