Mojo function
to_index_list
to_index_list[rank: Int, t: IntTuple](tuple: RuntimeTuple[t, element_type=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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!