Mathematica 9 is now available

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

Length

FilledSmallSquare Length[expr] gives the number of elements in expr.

FilledSmallSquare See Section 1.4.8, Section 1.8.3 and Section 2.1.5.

FilledSmallSquare When expr is a SparseArray object, Length[expr] returns the length of corresponding ordinary list.

FilledSmallSquare Otherwise, Length[expr] returns 0 whenever AtomQ[expr] is True.

FilledSmallSquare See also: LeafCount, ByteCount, Depth.

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.