The proper way to reproduce the code is to enter the abbreviations for the
TSS-specific functions and to ‘copy’ the code unaltered:
#lang racket
(define atom? symbol?)
(define t #true)
(define-syntax-rule (letcc k e) (call/cc (lambda (k) e)))
(define rember1*
(lambda (a l)
(letrec
Ian,
`oh` is indeed unbound inside the call to `call/cc`.
`oh` is only bound within the body of the `lambda` that is on the
right-hand side of the `letrec`; it is not bound in the body of the
`letrec`, which is where the call to `call/cc` is.
I don't have my copy of TSS handy. Did you make a
Hello list,
I've been working through The Seasoned Schemer and have come across code that I
can't access in the Racket REPL: specifically, the version of rember1* shown on
p. 139 of the 17th chapter.
I'm not sure why there is a complaint about the 'oh' variable being unbound in
the last let
3 matches
Mail list logo