previous | index | next

Movie Selectors

To access a movie's title, we could use the car procedure:
          (car movie-1) ⇒ (dead again)
Q: How to get the list of actors?
          (car (cdr (cdr (cdr movie-1)))) 
          ⇒ ((kenneth branagh) (emma thompson) (andy garcia)
             (derek jacobi) (hanna schygulla))
Better to employ procedural abstraction and hide the details of the list navigation from the user.

previous | index | next