(defn sum-of-sq-of-two-largest [a b c]
(apply sum-of-squares (take 2 (sort3 a b c))))
+;; well, I cheated above. Let me use only the constructs introduced
+;; so far in the book. (follows after the sicp meetup #2 on 28/mar/2010.
+(defn sum-of-square-of-two-largest [a b c]
+ (if (> a b)
+ (if (> b c)
+ (sum-of-squares a b) ; a > b > c
+ (sum-of-squares a c))
+ (if (> a c)
+ (sum-of-squares b a)
+ (sum-of-squares b c))))
+
;; exercise 1.4: Observe that our model of evaluation allows for
;; combinations whose operators are compound
;; expressions. Use this observation to describe the