3 (define (partial-sums s)
4 (define (partial-sums-iter sum stream)
5 (cons-stream (+ sum (stream-car stream))
6 (partial-sums-iter (+ sum (stream-car stream))
8 (partial-sums-iter 0 s))
11 > (stream-ref (partial-sums (integers-starting-from 1)) 0)
13 > (stream-ref (partial-sums (integers-starting-from 1)) 1)
15 > (stream-ref (partial-sums (integers-starting-from 1)) 2)
17 > (stream-ref (partial-sums (integers-starting-from 1)) 3)
19 > (stream-ref (partial-sums (integers-starting-from 1)) 4)