For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
format_layout
def format_layout[W: Writer](layout: Layout, mut writer: W)
Formats a 2D layout as a table and writes it to the specified writer.
This function creates a visual representation of a 2D layout as a table showing the memory indices for each logical coordinate.
Parameters:
- โW (
Writer): Type parameter representing a Writer implementation.
Args:
- โlayout (
Layout): The 2D layout to format. - โwriter (
W): The writer to output the formatted layout to.