Created
November 7, 2012 20:19
-
-
Save heronmedeiros/4034140 to your computer and use it in GitHub Desktop.
reduce example
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 plus [alpha beta] (+ alpha beta)) | |
(plus 3 4) ;; 7 | |
(plus 3 [4 5]) ;; Exception | |
(reduce plus 3 [4 5] ) ;; 12 | |
;;yay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment