Why does flatten-stream use delay explicitly? What would be wrong withdefining it as follows:

Why does flatten-stream use delay explicitly? What would be wrong withdefining it as follows:

(define (flatten-stream stream)

(if (stream-null? stream)

the-empty-stream

(interleave

(stream-car stream)

(flatten-stream (stream-cdr stream)))))

 

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.