Google Answers Logo
View Question
 
Q: Dr. scheme programming ( No Answer,   2 Comments )
Question  
Subject: Dr. scheme programming
Category: Computers > Programming
Asked by: maandana-ga
List Price: $2.00
Posted: 03 Dec 2005 07:14 PST
Expires: 05 Dec 2005 16:25 PST
Question ID: 600876
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?59



(define x (stream-map show (stream-enumerate-interval 0 10)))
(stream-ref x 5)
(stream-ref x 7)
Answer  
There is no answer at this time.

Comments  
Subject: Re: Dr. scheme programming
From: scriptor-ga on 03 Dec 2005 09:18 PST
 
"...we will use the following procedure..." - who is "we"? This sounds
like some kind of homework or exam assignment. Google Answers
discourages and may remove such questions.

Scriptor
Subject: Re: Dr. scheme programming
From: secret901-ga on 03 Dec 2005 12:29 PST
 
Why don't you run it on DrScheme and see?

secret901-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy