Synopsis
- float size(float[] array)
- float size(string[] array)
- float size(bool[] array)
Parameters
- arrayArray for which size is requested.
Returns
The size of the array.
Description
The size function returns the number of elements in an array.
Related
Example
Print size
edgeLengths = comp(e) { all : scope.sx }
faceAreas = comp(f) { all : geometry.area() }
Example --> print(edgeLengths) // (4)[2,2,2,2]
print(faceAreas) // (1)[4]
print(size(edgeLengths)) // 4
print(size(faceAreas)) // 1