logo CodeStepByStep logo


Language/Type: Racket basics
Author: Melissa Hovik (on 2017/07/08)

In Racket, one way you can build a list is by using (list v0 v1 ... vn), where v0 is the first element in the list, and vn is thelast element. How can you build a list equivalent to (list 0 1 2) using the alternative cons list constructor (use null to terminate the list)?


You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.