This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cs330_f2016:rackethof2 [2018/01/23 16:06] morse [Notes:] |
cs330_f2016:rackethof2 [2018/09/18 00:50] morse |
||
---|---|---|---|
Line 16: | Line 16: | ||
* ''default-parms'' - decorates a function to add default parameter values | * ''default-parms'' - decorates a function to add default parameter values | ||
* ''type-parms'' - decorates a function to enforce parameter type checking | * ''type-parms'' - decorates a function to enforce parameter type checking | ||
+ | * ''new-sin2'' - a decorated version of your earlier ''new-sin'' that fills in default parameters and enforces correct types for all parameters | ||
You will also chain these together to add both parameter type checking and default parameters to a function. | You will also chain these together to add both parameter type checking and default parameters to a function. |