Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

b) Use Scheme's built-in functions.    First, you must explicitly define that you are going to use a list of exactly two elements, i.e. (list a b).    Scheme already provides functions to access the first and second elements of such a list, called, oddly enough, called "first" and "second":

Code Block
(first (list a b)) ==> a

(second (list a b)) ==> b 

...