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

- When expr is a SparseArray, StructuredArray, or Association object, Length[expr] returns the length of the corresponding ordinary list. »
- Otherwise, Length[expr] returns 0 whenever AtomQ[expr] is True.
Examples
open all close allBasic Examples (2)
Find the length of an Association:
Scope (2)
Generalizations & Extensions (5)
Applications (5)
Properties & Relations (1)
Possible Issues (5)
Introduced in 1988
Updated in 2014
(1.0)
|
(10.0)