Created
November 6, 2010 05:03
-
-
Save robertpostill/665212 to your computer and use it in GitHub Desktop.
Refactored solution for SICP exercise 1.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (sum-of-the-larger-two a b c) | |
(define remainder (min a b c)) | |
(define subtotal (apply + (list a b c))) | |
(- subtotal remainder)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment