I am trying to write a function apply-all that is passed a list of functions and a number, and produces a list of the values of the functions when applied to that number
For example,
(apply-all (list sqrt square cube) 4) => (2 16 64))
assuming that all functions have been previously defined
I know how to write each function separately and how that would work but I am a little confused about how to go about doing this one and processing what functions are passed
You need to traverse the function list and, for each function in turn, apply it to the number parameter. The easiest way to do this is by using the
mapprocedure: