Skip to main content

Mojo function

to_unknown

to_unknown(t: IntTuple[origin]) -> IntTuple

Create an IntTuple with the same structure but filled with UNKNOWN_VALUE.

This function preserves the hierarchical structure of the input IntTuple but replaces all integer values with UNKNOWN_VALUE.

Args:

  • t (IntTuple): The template IntTuple defining the structure.

Returns:

IntTuple: A new IntTuple with the same structure as t but with all values replaced by UNKNOWN_VALUE.

Was this page helpful?