Skip to main content

Mojo function

size

size(l: Layout) -> Int

Returns the total number of elements in the layout's domain.

This is a standalone function equivalent to the Layout.size() method.

Args:

  • l (Layout): The layout to calculate the size for.

Returns:

The total number of elements in the layout.

Was this page helpful?