From: jim Date: Thu, 30 Apr 2015 17:12:35 +0000 (-0400) Subject: tweak X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=a5dc1452c495e1f2a09e44cb518353f9cc7038f7 tweak --- diff --git a/topics/week13_native_continuation_operators.mdwn b/topics/week13_native_continuation_operators.mdwn index 95defac2..6f7a0eb8 100644 --- a/topics/week13_native_continuation_operators.mdwn +++ b/topics/week13_native_continuation_operators.mdwn @@ -139,7 +139,7 @@ That was all *delimited* continuation operators. There's also the **undelimited returns `101`, whereas: - (reset (+ 10 (shift k 1))) + (reset (+ 100 (shift k 1))) only returns `1`. It is possible to duplicate the behavior of `let/cc` using `reset`/`shift`, but you have to structure your code in certain ways to do it. In order to duplicate the behavior of `reset`/`shift` using `let/cc`, you need to also make use of a mutable reference cell. So in that sense delimited continuations are more powerful and undelimited continuations are sort-of a special case.