Shape2D
Shape2D
Dimensions of an Array2D
where rows
is the total number of rows and
cols
is that total number of columns.
isEmpty : Shape2D -> Bool
Predicate to determine if an array shape can contain indices. When the shape has zero rows or zero columns then there is no index that can fall within the shape bounds.
hasIndex : Shape2D, Index2D -> Bool
Predicate to determine if an index is within the bounds of an array shape.
size : Shape2D -> U64
Total number of elements within the array shape.