Mathematica 9 is now available

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

Depth

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



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.