From: Jim Pryor Date: Wed, 15 Sep 2010 16:05:38 +0000 (-0400) Subject: damn tweaks15 X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=a2a03810f7b4ee7d4af98af5a39fc426ca520603 damn tweaks15 Signed-off-by: Jim Pryor --- 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: