chickadee » sicp » integers-starting-from

integers-starting-from nprocedure

Enumerates the integers starting from n streamingly.

n
The number to start from
(define (integers-starting-from n)
  (cons-stream n (integers-starting-from (+ n 1))))