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)))))
The post Why does flatten-stream use delay explicitly? What would be wrong withdefining it as follows: appeared first on Lion Essays.
Why does flatten-stream use delay explicitly? What would be wrong withdefining it as follows: was first posted on February 27, 2023 at 8:05 am.©2019 "Lion Essays". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at admin@queensresearch.com