This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Testing /


FilledSmallSquare Depth[expr] gives the maximum number of indices needed to specify any part of expr, plus one.

FilledSmallSquare Raw objects have depth 1.

FilledSmallSquare The computation of Depth does not include heads of expressions.

FilledSmallSquare Depth treats SparseArray objects just like the corresponding ordinary lists.

FilledSmallSquare See Section 2.1.7.

FilledSmallSquare See also: ArrayDepth, Level, LeafCount, Length, Nest.

FilledSmallSquare New in Version 1; modified in 5.0.

Further Examples