chickadee » sicp » make-tableau

make-tableau transform sprocedure

Makes a tableau (i.e., a stream of streams) compounded from some transformation.

transform
The compounding transformation
s
The stream to transformatively compound
(define (make-tableau transform s)
  (cons-stream s (make-tableau transform (transform s))))