Created
August 11, 2015 07:18
-
-
Save fgui/41a368979d280441dfd8 to your computer and use it in GitHub Desktop.
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
(defn scip-ex13 | |
"Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers." | |
[& args] | |
(apply + (->> args (sort) (reverse) (take 2) (map #(* % %))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment