Created
July 8, 2011 00:07
-
-
Save anonymous/1070833 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
(defun square (num) | |
(* num num)) | |
(defun largest (n nums) | |
(last (sort nums '<) n)) | |
(defun sum-square-largest-2 (&rest nums) | |
(apply '+ (mapcar 'square (largest 2 nums)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment