Mathematica 9 is now available

Depth

Usage

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


Notes

• Raw objects have depth 1.
• The computation of Depth does not include heads of expressions.
Depth treats SparseArray objects just like the corresponding ordinary lists.
• See Section 2.1.7.
• See also: ArrayDepth, Level, LeafCount, Length, Nest.
• New in Version 1; modified in 5.


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.