previous | index | next

Exercises

Exercise 7.22: Write general procedures:
     (movies-made-in-year database year)

Ex:  (movies-made-in-year our-movie-database 1974)
     ⇒ (((amarcord) 
         (federico fellini) 
         1974 
         ((magali noel) (bruno zamin) (pupella maggio) (armando drancia))))


     (movies-directed-by database director)

Ex:  (movies-directed-by our-movie-database '(john singleton))
     ⇒ (((boyz n the hood)
         (john singleton)
         1991
         ((cuba gooding jr.) (ice cube) (larry fishburne) (tyra ferrel) 
          (morris chestnut))))


     (movies-with-actor database actor)

Ex:  (movies-with-actor our-movie-database '(john goodman))
     ⇒ (((the big easy)
         (jim mcbride)
         1987
         ((dennis quaid) (ellen barkin) (ned beatty) (lisa jane persky) 
          (john goodman) (charles ludlam))))

previous | index | next