lisp - HTDP Exercise 6.6.1 - What does it mean by template functions? -
I'm looking at a plan for a little fun using the book "How To Make Fun Programs". All very easy yet, but ran into this weird words, where I am not clear what the purpose is:
Develop the template fun-round-circle, which resolves the function Which uses the circle. The result is undefined.
One possibility is that I am being asked to define a higher order function, but it seems that the lambda has not been fit in the form of the book so far And that you were following the book as a novice developer if you had to jump before running.
The second option will be to simply look for a function in just a comment, however, exercise 6.6.2 does not fit with the following instructions to use it:
Use fun-of-circle to develop a Draw-One circle
I'm sure something is clear to me, but I'm not sure what happened. Unfortunately I can not see the answer to see what I intend because I do not have a password, does anyone get any insight?
, a template is a type of sketch of a function, which Basically lists all the things that you know about input, along with the fields and often the result of a recursive call on the part of the data (these come later in the book). You can see the word defined with an example of the template.
BTW, the idea of writing these templates clearly is central to the HDD approach, especially when it comes to later recursive functions - where you have a good analysis of data, then you can see almost random definitions Makes writing easy.
Comments
Post a Comment