I have to create the following: A Scheme procedure named 'proc2' which takes 4 numbers as arguments and returns the value of the largest argument minus the smallest.
So I want to write (define proc2 lambda(a b c d) ... )
Is there any way I can evaluate (> a b), (> a c), (> a d) at the same time? I want to get the largest (and the smallest)number without having to write nested ifs.