Question: Write new versions of cons, car, and cdr that operate on streams. Using them, rewrite the code of the previous exercise to eliminate the calls
Write new versions of cons, car, and cdr that operate on streams. Using them, rewrite the code of the previous exercise to eliminate the calls to delay and force. Note that the stream version of cons will need to avoid evaluating its second argument; you will need to learn how to define macros (derived special forms) in Scheme.
Step by Step Solution
★★★★★
3.39 Rating (165 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Certainly Here are the stream versions of cons car and cdr definesyntax streamcons syntaxrules x y l... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
