Chapter 3, Modularity, Objects, and State

Exercise 3.74

(define zero-crossings
  (stream-map sign-change-detector sense-data (cons-stream 0 sense-data)))

Note that 0 is needed here to make the output exactly same as shown in the example. Instead if we use stream-cdr then the first value generated by this won’t be same as shown in the book.