Length of a List
l
The
length
, or number of elements, in a list is the
number at the Òtop levelÓ
[ [ [1, 2, 3], [2, 3] ],
[ [3], [] ] ]
has length 2
[[1, 2, 3, 4],
[[1, 2], [3, 4]],
[[[1, 2, 3, 4]]]]
has length 3