cps tweaks
[lambda.git] / cps_and_continuation_operators.mdwn
index 30dcc12..430b7b7 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)
 
@@ -496,8 +496,8 @@ You can make the lambda evaluator perform the required CPS transforms with these
 You use these like so:
 
 *      [reset m] is `reset M` where `M` is [m]
-*      [shift k M] is `shift (\k. M)` where `M` is [m]
-*      and [abort M] is `abort M` where `M` is [m]
+*      [shift k m] is `shift (\k. M)` where `M` is [m]
+*      and [abort m] is `abort M` where `M` is [m]
        
 There are also `reset` and `shift` and `abort` operations in the Continuation monad in our OCaml [[monad library]]. You can check the code for details.