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?
Thank you! We'll create more content like this.
Thank you for helping us improve!