uncurry f for Kapulet
authorjim <jim@web>
Sun, 8 Feb 2015 02:37:00 +0000 (21:37 -0500)
committerLinux User <ikiwiki@localhost.members.linode.com>
Sun, 8 Feb 2015 02:37:00 +0000 (21:37 -0500)
exercises/assignment2_hint.mdwn

index 1390926..89f442b 100644 (file)
@@ -8,7 +8,7 @@ The problem was:
 
 ### Here is a hint. ###
 
-Suppose the list we want to reverse is `[10, 20, 30]`. Applying `fold_right` to this will begin by computing `f 30 z` for some `f` and `z` that we specify. If we made the result of that be something like `30 & blah`, or any larger structure that contained something of that form, it's not clear how we could, using just the resources of `fold_right`, reach down into that structure and replace the `blah` with some other element, as we'd evidently need to, since after the next step we should get `30 & (20 & blah)`. What we'd like instead is something like this:
+Suppose the list we want to reverse is `[10, 20, 30]`. Applying `fold_right` to this will begin by computing `f (30, z)` for some `f` and `z` that we specify. If we made the result of that be something like `30 & blah`, or any larger structure that contained something of that form, it's not clear how we could, using just the resources of `fold_right`, reach down into that structure and replace the `blah` with some other element, as we'd evidently need to, since after the next step we should get `30 & (20 & blah)`. What we'd like instead is something like this:
 
     30 & < >