Mojo function
is_int
is_int[t: IntTuple[origin]](tuple: RuntimeTuple[t, element_type=element_type]) -> Bool
Determines if a RuntimeTuple represents a scalar integer value.
This function checks if the RuntimeTuple holds a single scalar value
rather than a tuple structure with multiple elements.
Parameters:
- t (
IntTuple): The IntTuple type parameter of the RuntimeTuple.
Args:
- tuple (
RuntimeTuple): TheRuntimeTupleto check.
Returns:
Bool: True if the RuntimeTuple represents a scalar integer, False otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!