From ff25bb904871819368f18ccec236263072cb561f Mon Sep 17 00:00:00 2001 From: barker Date: Sun, 19 Sep 2010 23:48:34 -0400 Subject: [PATCH] --- assignment2.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assignment2.mdwn b/assignment2.mdwn index b8a2444c..6babbc80 100644 --- a/assignment2.mdwn +++ b/assignment2.mdwn @@ -72,17 +72,17 @@ 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))))) -1. What would be the result of evaluating: +16. What would be the result of evaluating: LIST make-list empty -[[Assignment 2 hint 1]] + [[Assignment 2 hint 1]] -2. 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)))))
-3. Based on your answer to question 1, how might you implement the **filter** function? The expected behavior is that: +18. Based on your answer to question 1, how might you implement the **filter** function? The expected behavior is that: filter f LIST -- 2.11.0