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).
flatten
flatten(t: IntTuple) -> IntTuple
Flatten a nested IntTuple into a single-level IntTuple.
This function converts a hierarchical IntTuple structure into a flat
sequence of integer values, preserving the order of elements.
Args:
- t (
IntTuple): The nestedIntTupleto flatten.
Returns:
IntTuple: A new IntTuple containing all integer values in a flat structure.