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

tuple_min

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.