(define (min2 a b)
(if (> a b)
b
a))
(define (min3 x y z)
(min2 (min2 x y) (min2 y z)))
(define (sum x y z)
(- (+ x y z) min3(x y z)))
(sum 1 2 3)
error tip:
;The object 1 is not applicable.
Scheme Newbie learn Scheme, So I don't understand why (min3 1 2 3)
is right, but (sum 1 2 3)
is wrong?