This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cs330_f2016:rackethof [2018/09/17 22:46] morse |
cs330_f2016:rackethof [2020/01/15 20:49] wingated |
||
---|---|---|---|
Line 26: | Line 26: | ||
* ''average'' | * ''average'' | ||
* ''eliminate-larger'' | * ''eliminate-larger'' | ||
+ | |||
+ | You must write these using higher-order functions rather than implementing the recursion yourself. | ||
+ | As with the previous lab, you may not use ''set!''. | ||
In addition, you will need to implement the following function: | In addition, you will need to implement the following function: | ||
Line 35: | Line 38: | ||
</code> | </code> | ||
where ''func'' is a two-parameter function and the result is a curried version of that two-parameter function. | where ''func'' is a two-parameter function and the result is a curried version of that two-parameter function. | ||
+ | |||
+ | You may not use any built-in curry functions to implement this. | ||
Hint: You **don't** need to know what the function passed in actually does. All you need to know is that it requires two parameters, and once you have those parameters you use the function. | Hint: You **don't** need to know what the function passed in actually does. All you need to know is that it requires two parameters, and once you have those parameters you use the function. |