Question: Write Scheme programs that generate the following lists as output using only cons as the list building operator: A list l that contains three items:

Write Scheme programs that generate the following lists as output using only cons as the list building operator:

A list l that contains three items: the atom g, the division operator /, and the atom 6 such that ((cadr l) 18 9) evaluates to 2.

Note that cadr is composed of car and cdr such that (cadr l) = (car (cdr l)).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!