188.8.131.52. Frames and Bindings
Explicit delay in flatten-stream
Why does flatten-stream use delay explicitly? What would be wrong with defining it as follows:
(define (flatten-stream stream) (if (stream-null? stream) the-empty-stream (interleave (stream-car stream) (flatten-stream (stream-cdr stream)))))
Nobody's finished this exercise yet. You'll be the first!
There are no comments yet.
You must log in to post a comment.Login