Scheme like question

Marco Antoniotti marco.antoniotti at unimib.it
Mon Dec 13 20:04:47 UTC 2021


Hi

apologies for the stupid question.  I was reviewing some teaching material
and looked at the following Scheme (form SICP) code about "streams".

(define (integral integrand initial-value dt)
  (define int
    (cons-stream initial-value
                 (add-streams (scale-stream integrand dt)
                              int)))
  int)

The question is how you'd rendered it in Common Lisp or how you would
provide some macrology to mimic the inner define.  I know this has been
asked before...  I am sure somebody knows the answer.

All the best

-- 
Marco Antoniotti, Professor                           tel. +39 - 02 64 48
79 01
DISCo, Università Milano Bicocca U14 2043   http://dcb.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20211213/09802d03/attachment.html>


More information about the pro mailing list