Mojo function
Index
Index[*Ts: Intable, *, dtype: DType = DType.int64](*args: *Ts) -> IndexList[VariadicPack.__len__(), element_type=dtype]
Constructs an N-D Index from the given values.
Parameters:
- โ*Ts (
Intable): The types of the arguments (must beIntable). - โdtype (
DType): The integer type of the underlying element of the resulting list.
Args:
- โ*args (
*Ts): The values to construct the index from.
Returns:
IndexList: The constructed IndexList.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!