rank - returns the rank (number of dimensions) of a value
val.rank()
The rank()
method returns the number of
dimensions of a scalar or array value. The rank()
is always a scalar.
An Int
containing the number of dimensions of
a given value
ArgCheck
if any arguments are passed
a = 3 a.rank() 0 a = [3,4,5].iterate() a.rank() 3