You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
418 B
22 lines
418 B
2 years ago
|
|
||
|
Exercise 3.51: In order to take a closer look at
|
||
|
delayed evaluation, we will use the following procedure, which simply returns
|
||
|
its argument after printing it:
|
||
|
|
||
|
|
||
|
(define (show x)
|
||
|
(display-line x)
|
||
|
x)
|
||
|
|
||
|
What does the interpreter print in response to evaluating each expression in
|
||
|
the following sequence?187
|
||
|
|
||
|
|
||
|
(define x
|
||
|
(stream-map
|
||
|
show
|
||
|
(stream-enumerate-interval 0 10)))
|
||
|
|
||
|
(stream-ref x 5)
|
||
|
(stream-ref x 7)
|