From a5dc1452c495e1f2a09e44cb518353f9cc7038f7 Mon Sep 17 00:00:00 2001 From: jim Date: Thu, 30 Apr 2015 13:12:35 -0400 Subject: [PATCH 1/1] tweak --- topics/week13_native_continuation_operators.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0