X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2Fassignment2.mdwn;h=f0dbfcd4e9df6be6103b60aa64c4319897f03ff2;hp=946df8feabce4fd3a01b8b0727778d6e89428c6c;hb=b23570f3ffe4fc05de3f291d96b20ce474b1e330;hpb=7cc39c68d74503b3ea9d143ebe9acf21ff425042 diff --git a/exercises/assignment2.mdwn b/exercises/assignment2.mdwn index 946df8fe..f0dbfcd4 100644 --- a/exercises/assignment2.mdwn +++ b/exercises/assignment2.mdwn @@ -133,30 +133,10 @@ Folds and Lists 25. We mentioned in the Encoding notes that `fold_left (flipped_cons, []) xs` would give us the elements of `xs` but in the reverse order. That is, this is how we can express `reverse` in terms of `fold_left`. How would you express `reverse` in terms of `fold_right`? - This problem does have an elegant and concise solution, but it may be hard for you to figure it out. We think it will a useful exercise for you to try, anyway. We'll give a [[hint]]. Don't look at the hint until you've gotten really worked up about the problem. Before that, it probably will just be baffling. If your mind has really gotten its talons into the problem, though, the hint might be just what you need to break it open. + This problem does have an elegant and concise solution, but it may be hard for you to figure it out. We think it will a useful exercise for you to try, anyway. We'll give a [[hint|assignment2 hint]]. Don't look at the hint until you've gotten really worked up about the problem. Before that, it probably will just be baffling. If your mind has really gotten its talons into the problem, though, the hint might be just what you need to break it open. Even if you don't get the answer, we think the experience of working on the problem, and then understanding the answer when we reveal it, will be satisfying and worhtwhile. It also fits our pedagogical purposes for one of the recurring themes of the class. - Numbers -------