- Consider the list, colors, given below in which a color and itsattribute are specified for various colors.
(setf colors ‘( (red 0.7) (blue 0.3)(purple 0.1) (violet 0.05) (black 0.8) (green 0.5)))
Write a CLISP function, fmax, whichaccepts the above list & initial max value of an attribute, andreturns the highest attribute. Use tail-recursive approach. Forexample,
CLISP> (fmax colors 0.0)
0.8
Expert Answer
An answer will be send to you shortly. . . . .