length
 
 
 

Returns an integer indicating the number of elements in a list

(length lst)

Arguments

lst

A list.

Return Values

An integer.

Examples

Command: (length '(a b c d))

4

Command: (length '(a b (c d)))

3

Command: (length '())

0

See Also