Design & Implementation of Programming Languages Second Exercise – Lists and Folds Due by: Monday, 16 Aban (23:59) If you missed the TA class, some of the material covered is uploaded as an .rkt file; also, you may try the Internet. Read information about foldr. Try to get a concept of how to write foldl in foldr. The homework this time is quite simple; in fact, your friend designed it during class. Write reverse using foldr. Define your function using the (define (myreverse L) ….) construct, so that (myreverse ‘(1 2 3)) yields ‘(3 2 1). Please only submit 1 file, which you have named studentid.rkt. Homework should be mailed to me at [email protected] (don’t forget the +pl2 part). No code sharing is allowed, and violations of this policy will result in you receiving no credit for any of your homework. There is also a no-late policy, which basically means homework received late will be ignored. Please try to keep your code readable by using appropriate concepts like local definitions when appropriate. Do not hesitate to mail me or other TAs for questions (without the +pl2); however, note that we will not debug your code.
© Copyright 2026 Paperzz