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
Get step-by-step solutions from verified subject matter experts
