ndim ( array -- n )


Vocabulary
arrays.shaped

Inputs
arraya shaped-array, a sequence, or a number


Outputs
nan integer


Word description
Returns the number of dimensions of a shaped array or a rectangular nested sequence. Numbers have zero dimensions. An empty ordinary sequence has one dimension.

Definition