X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment2.mdwn;fp=assignment2.mdwn;h=96ac3bb90fac15c88f8dc46fc17959555b6f64e7;hp=6babbc8042762299caeeac9a7815ca56e8ba4ea8;hb=c4fb7eb9202fc734adcee0e9e7bb4a57fb6c30ad;hpb=ff25bb904871819368f18ccec236263072cb561f diff --git a/assignment2.mdwn b/assignment2.mdwn index 6babbc80..96ac3bb9 100644 --- a/assignment2.mdwn +++ b/assignment2.mdwn @@ -72,13 +72,13 @@ For these exercises, assume that `LIST` is the result of evaluating: (make-list a (make-list b (make-list c (make-list d (make-list e empty))))) -16. What would be the result of evaluating: +(16). What would be the result of evaluating: LIST make-list empty [[Assignment 2 hint 1]] -17. Based on your answer to question 1, how might you implement the **map** function? Expected behavior: +(17). Based on your answer to question 1, how might you implement the **map** function? Expected behavior:
map f LIST <~~> (make-list (f a) (make-list (f b) (make-list (f c) (make-list (f d) (make-list (f e) empty)))))