cps tweaks
authorJim Pryor <profjim@jimpryor.net>
Wed, 22 Dec 2010 00:05:51 +0000 (19:05 -0500)
committerJim Pryor <profjim@jimpryor.net>
Wed, 22 Dec 2010 00:05:51 +0000 (19:05 -0500)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
cps_and_continuation_operators.mdwn
hints/cps_hint_4.mdwn

index 30dcc12..6d98f64 100644 (file)
@@ -397,7 +397,7 @@ Here is [the answer](/hints/cps_hint_4), but again, first try to figure it out f
 Delimited control operators
 ===========================
 
-Here again is the CPS for `callcc`:
+Here again is the CPS transform for `callcc`:
 
        [callcc (\k. body)] = \outk. (\k. [body] outk) (\v localk. outk v)
 
index 09a45af..028504c 100644 (file)
@@ -52,4 +52,5 @@ This function is developed in *The Seasoned Schemer* pp. 165-177. It accepts a l
        (delta '(((a b) ()) (c (d (d)))))  ; ~~> #t
        (delta '(((a b c) ()) (c (d ())))) ; ~~> #t
        (delta '(((a b) ()) (c (d ()) c))) ; ~~> #f
+       (delta '((() ()) ()))              ; ~~> #f