I want to use the predefined (max)
function (R5RS) with a list
of numbers, which varies in length. Unfortunately, (max)
accepts input like this:
(max 2 43 5 6)
=> 43
I'm attempting to use it like so:
(define lst '(3 5 53 4 53 54 32))
(max lst)
This produces the following error.
max: expects argument of type <real number>; given (3 5 53 4 53 54 32)
How can I break this list into the individual arguments I need, as I'm passing them to (max)
?