X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=cps_and_continuation_operators.mdwn;h=72b0034235e0c2be0e891c350ed168dee3b6360f;hp=430b7b7526f0e02d2d1956f2fda5ed9074942f1b;hb=7e8b792951540174260cc74dc3a380d24ccf1df1;hpb=bae0fec9fbcf61e30af4d7c64948b87075db629a diff --git a/cps_and_continuation_operators.mdwn b/cps_and_continuation_operators.mdwn index 430b7b75..72b00342 100644 --- a/cps_and_continuation_operators.mdwn +++ b/cps_and_continuation_operators.mdwn @@ -495,9 +495,9 @@ 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] +* [reset body] is `reset BODY` where `BODY` is [body] +* [shift k body] is `shift (\k. BODY)` where `BODY` is [body] +* and [abort value] is `abort VALUE` where `VALUE` is [value] 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.