Skip to content

Instantly share code, notes, and snippets.

@heronmedeiros
Created November 7, 2012 20:19
Show Gist options
  • Save heronmedeiros/4034140 to your computer and use it in GitHub Desktop.
Save heronmedeiros/4034140 to your computer and use it in GitHub Desktop.
reduce example
(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