Skip to main content

Mojo function

is_int

is_int[: ImmutableOrigin, //, t: IntTuple[$0]](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:

Returns:

Bool: True if the RuntimeTuple represents a scalar integer, False otherwise.

Was this page helpful?