Function reference · Math
size
Returns the dimensions of a structured parser value.
size(...) reports the public dimensions of vectors, matrices, sets, collections, and dictionaries.
The result is returned as a Vector of dimension sizes.
Examples
These examples use Nerdamer Notation.
Return the length of a Vector.
size([a,b,c]) // → [3]
Return matrix row and column counts.
size(matrix([1,2,3],[4,5,6]))
// → [2, 3]Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
size(value)
Parameters
value— Vector, matrix, set, collection, or dictionary whose dimensions should be returned.
