From a2a03810f7b4ee7d4af98af5a39fc426ca520603 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Wed, 15 Sep 2010 12:05:38 -0400 Subject: [PATCH] damn tweaks15 Signed-off-by: Jim Pryor --- damn.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/damn.mdwn b/damn.mdwn index cd011344..5bf45b84 100644 --- a/damn.mdwn +++ b/damn.mdwn @@ -276,6 +276,8 @@ If a block `...` never invokes a shift, then `(reset ...)` will evaluate just th Going back to the beginning, then. We start with: + (require racket/control) ; this tells Scheme to let us use shift and reset + (define damn (lambda () 'id)) We evaluate: @@ -295,7 +297,6 @@ Evaluating that gives us: Now to pair that with an affective side-issue content, we'd instead define `damn` as: - (require racket/control) ; this tells Scheme to let us use shift and reset (define damn (lambda () (shift k (cons (cons 'side-effect 'bad) (k 'id))))) And voila: -- 2.11.0