Let's assume we have a group of values, if we pass the values in as arguments to a function so that the function call looks like such.
(define (function arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8)
;; Return minimum argument
)
How would you, without using lists or the built-in min function, and using the minimum number of comparisons find the smallest argument? I can't identify a way to do so without using lists or using a large number (in my mind) of comparisons between all of the arguments. Does Scheme have some method other than min or some syntax for efficiently finding the smallest value.