Mojo function
to_index_list
to_index_list[rank: Int](t: IntTuple[origin]) -> IndexList[rank]
Converts an IntTuple to a flattened IndexList with the same values.
Parameters:
- rank (
Int
): The rank of the resulting IndexList.
Args:
- t (
IntTuple
): TheIntTuple
defining the values.
Returns:
IndexList
: An IndexList filled with the values of t.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!