For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
coord_to_index_list
coord_to_index_list[element_types: TypeList[element_types.values]](value: Coord[element_types]) -> IndexList[Coord[element_types].rank]
Convert a flat Coord to an IndexList.
Parameters:
- element_types (
TypeList[element_types.values]): The list of element types in theCoord.
Args:
- value (
Coord[element_types]): TheCoordto convert.
Returns:
IndexList[Coord[element_types].rank]: An IndexList with the same rank and values as the input Coord.