Length
returns the number of leaves in
expr
.
Examples
Length of a list:
‘Length’ operates on the ‘FullForm’ of expressions:
The length of atoms is 0:
Note that rational and complex numbers are atoms, although their ‘FullForm’ might suggest the opposite:
Implementation status
- ✅ - full supported