USER(53): '(how are you today ?) ; A list of symbols.
(HOW ARE YOU TODAY ?)
USER(54): '(1 + 2 * x) ; A list of symbols and numbers.
(1 + 2 * X)
USER(55): '(pair (2 3)) ; A list containing 'pair and '(2 3).
(pair (2 3))
Notice that the list (pair (2 3)) has length 2:
USER(56): (recursive-list-length '(pair (2 3)))
2
|
Notice also the result of applying accessors:
USER(57): (first '(pair (2 3)))
PAIR
USER(58): (rest '(pair (2 3)))
((2 3))
Lists containing other lists as members are difficult to understand for
beginners. Make sure you understand the above example.
|