IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
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).

index

Implements IndexList which is commonly used to represent N-D indices.

You can import these APIs from the utils package. For example:

from std.utils import IndexList

Structs

  • IndexList: A base struct that implements size agnostic index functions.

Functions

  • apply_fn:
  • Index: Constructs an N-D Index from the given values.
  • product: Computes a product of values in the tuple up to the given index.