to_index_list
to_index_list[rank: Int, t: IntTuple](tuple: RuntimeTuple[t, element_type=tuple.element_type]) -> IndexList[rank]
Converts a RuntimeTuple to an IndexList with the same values.
Parameters:
- rank (
Int): The rank of the resulting IndexList. - t (
IntTuple): The IntTuple template parameter of the RuntimeTuple.
Args:
- tuple (
RuntimeTuple): The RuntimeTuple to convert.
Returns:
IndexList: An IndexList filled with the values of the RuntimeTuple.