X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment2.mdwn;h=82957888e1c773cb007feb9b7ec7fd9ef55ac735;hp=f6bde83dc1c5351567884ff3f7c61f8b3b23be64;hb=ac5b18441c0c498fa20ccd2db601d895d665929b;hpb=ffe08a8b7b983eb0919882f2a2e9c72aa27394ea diff --git a/assignment2.mdwn b/assignment2.mdwn index f6bde83d..82957888 100644 --- a/assignment2.mdwn +++ b/assignment2.mdwn @@ -76,6 +76,8 @@ For these exercises, assume that `LIST` is the result of evaluating: LIST make-list empty + [[Assignment 2 hint 1]] + 2. 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)))))