6.7

Homework 5

home work!

Programming Language ISL with Lambda

Due Date Sunday November 6 at 11:00 pm

Purpose To practice using higher-order abstractions and lambda in ISL.

Exercise 1 From HtDP, 275.

Exercise 2 Tetris Revisited

Edit your Tetris project. Be sure to fix any and all problems that your graders have discovered. Because you switched partners since submitting Tetris, you may start from either parters’ original submission, or even pick and choose the best parts from each one to combine into a solution that is better than either original version on its own.

Next, you are to use local and "loops" (i.e., abstractions such as map, foldr, filter, etc.) wherever your functions may benefit from them, especially for the lists of objects in your project. You may also use lambda terms in place of locally-named helper functions if you wish.

You should notice that the length of your program decreases considerably.