If we use
(define-syntax define/memoized
(syntax-rules ()
((_ (name . args) . body)
(define name (memoize (lambda args body))
and body is bound to((displayln x) (displayln y) (displayz))
then
(lambda args body)
will become
(lambda ((displayln x) (displayln y) (dis
Sorry I've messed up my reply, here's the actual reply
>Imagine (_ (foo x y z) (displayln x) (displayln y) (displayln z)) as the
>actual syntax. The .body will be bound to the sequence of three diaplaylns and
>this sequence will become the body of the lambda in the expansion.
So in this case bod
2 matches
Mail list logo