String1 | → | Real2 |
List1 | → | Real2 |
Vector1 | → | Real2 |
Matrix1 | → | List2 |
Symbol1 | → | Real2 |
Expression1 | → | Real2 |
This operation takes a string, list, vector, matrix or expression argument. In the case of a string, it pushes the number of characters in the string onto the stack. For a list argument, it pushes the number of items in the list onto the stack. For a vector it pushes a real number representing the number of values in the vector. For a matrix, it pushes a list of two real numbers representing the number of rows and the number of columns in the matrix. For an expression, it pushes the number of components in the expression. In other words, the number of real numbers, complex numbers, symbols and operations in the expression.