# SICP Goodness - Stream (9)

Doing some exercises

Do you think Computer Science equals building websites and mobile apps?

Are you feeling that you are doing repetitive and not so intelligent work?

Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long?

Do you want to understand the soul of Computer Science?

I’ve been quite busy with work related stuff recently and not had enough time for this series. Now I decided to continue reading and writing about SICP. To refresh my memory, I will reread the streams sections in the book. This time I find the material to be much easier for me and I see some wit that I have not noticed before.(That’s why this is a great book)

One of them is the Henderson graph used to illustrate streams.

Let’s first take a look at the integers stream:

(define (int-from n)
(cons-stream n (int-from (+ n 1))))

(define integers (int-from 1))


The dotted line means single value, and the solid line means stream.

This graph is recursive, and it is so beautifully and cleverly illustrates how infinite stream works.