Skip to main content

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 be Intable).
  • โ€‹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?